Skip to content

feat(pricing): follow indexer-rs's suggested minimum prices - #844

Merged
MoonBoi9001 merged 12 commits into
mb9/lower-the-price-ceiling-to-4-times-the-minimumfrom
mb9/keep-price-ceilings-in-step-with-indexer-rs
Nov 18, 2026
Merged

MoonBoi9001 merged 12 commits into
mb9/lower-the-price-ceiling-to-4-times-the-minimumfrom
mb9/keep-price-ceilings-in-step-with-indexer-rs

Conversation

@MoonBoi9001

@MoonBoi9001 MoonBoi9001 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Dipper's default base-price ceilings follow the minimums indexer-rs publishes on main-dips-rebased: it fetches them at start and every 6 hours and sets each listed chain's default ceiling to 4 times its minimum. A table that fails a check or a failed fetch changes nothing and raises an alert, as does every change, and ceilings set in the config are never touched.

Dipper filled in the default price ceilings while reading its config, so nothing after that
could tell a ceiling the operator chose from a default. The 2 settings are now kept as written
and a chain's ceiling is worked out when it is asked for. No ceiling changes.
Dipper's default price ceilings were a multiple of minimum prices copied into its code by hand.
It now fetches the table indexer-rs publishes, at start and every 6 hours, and moves the default
ceilings with it. A table that fails a check is refused, and ceilings set in the config stay.
An operator has to know that dipper's default price ceilings move with a file in indexer-rs,
which alerts that raises, that a ceiling set in the config wins, and how to switch it off.
@MoonBoi9001
MoonBoi9001 added this pull request to stack #845 November 17, 2026 21:09
…o mb9/keep-price-ceilings-in-step-with-indexer-rs

# Conflicts:
#	README.md
#	bin/dipper-service/src/config.rs
#	k8s/configmap-example.yaml
The operator notes called a chain missing from the fetched file one "with no suggested
minimum"; they say a chain indexer-rs does not list. They add that the ceiling on price per
billion entities is not in that file and stays at its configured value.
Dipper warns at start about each pricing_table price above its chain's price ceiling. The
ceilings can move while it runs, to follow indexer-rs, so the same warning is logged when a
fetched table leaves a table price above a ceiling it was not above before.
Dipper starts on the minimum prices built into its release until it fetches indexer-rs's.
A failed fetch is tried again after 1 minute, doubling up to the interval, where it waited
6 hours; alerts name the table in use, and the first change after a start says it is one.
A fetched table of minimum prices is refused when it drops a chain or moves a price by more
than 10 times. After a restart that compared it with the figures built into the release, so
a table dipper had followed for weeks could be refused. The first table is exempt from both.
A fetched table that adds a chain had no bound on its price, and by default the highest
minimum is the ceiling of every unlisted chain. While dipper runs, a new chain above the
highest minimum in use or under a tenth of the lowest is refused; a restart takes the table.
An operator can set only a fallback price ceiling, for chains with none of their own. A chain
that indexer-rs later lists then gets 4 times its minimum, not that fallback. The operator
notes say so, and that a hard limit on every chain needs the chain ceilings set as well.
@MoonBoi9001
MoonBoi9001 marked this pull request as ready for review November 17, 2026 21:58
indexer-rs keeps its DIPs work on `main-dips-rebased` until that merges into `main`, and the
file of suggested minimum prices is being added there. The default address, the example config
and the README named `main`, where every fetch would have failed.
The example config spelt out the address dipper fetches the suggested minimums from, which now
names a branch that is due to merge away. A deployment copied from it would keep that address
when the default moves, so the example leaves it to the default and a test holds it to that.
@MoonBoi9001
MoonBoi9001 merged commit d276b11 into main Nov 18, 2026
12 checks passed
MoonBoi9001 pushed a commit that referenced this pull request Nov 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.3.2](v0.3.1...v0.3.2)
(2026-11-18)


### Added

* **pricing:** cap indexer prices at 4 times the minimum
([#843](#843))
([7a298d3](7a298d3))
* **pricing:** follow indexer-rs's suggested minimum prices
([#844](#844))
([d276b11](d276b11))


### Changed

* let the chrono unmaintained notice through the scan
([#838](#838))
([fe6f7ff](fe6f7ff))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant