Repository navigation
feat(pricing): follow indexer-rs's suggested minimum prices - #844
Merged
MoonBoi9001 merged 12 commits intoNov 18, 2026
Conversation
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.
…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
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.