Skip to content

fix: cap the base price on chains without their own ceiling - #763

Draft
MoonBoi9001 wants to merge 3 commits into
mb9/skip-offers-above-the-price-capsfrom
mb9/cap-base-price-on-every-chain
Draft

MoonBoi9001 wants to merge 3 commits into
mb9/skip-offers-above-the-price-capsfrom
mb9/cap-base-price-on-every-chain

Conversation

@MoonBoi9001

@MoonBoi9001 MoonBoi9001 commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Dipper sent IISA a base-price ceiling only for the 9 rollout chains, so on any other chain an indexer could ask any base price and still be selected. Those chains now get fallback_max_grt_per_30_days, which defaults to 4,500 GRT per 30 days, and dipper refuses to start if it is not a positive number. IISA scores base price against the ceiling it is sent, so prices on those chains now score against 4,500 too.

Only the 9 rollout chains had a base-price ceiling, so on any other chain an indexer could ask
any base price and still be picked. A fallback ceiling now covers every chain without its own
entry, by default the highest chain ceiling (4,500 GRT per 30 days).
The default fallback ceiling was worked out by building the whole default chain map, and its
comment implied it follows an operator's own chain ceilings, which it does not.
An infinite ceiling would let every indexer through rather than shut them out, so the test's
name now says it rejects anything that is not a positive number.
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