Skip to content

a cross-chain relayer was being counted as a DEX aggregator - #2824

Closed
Flotapponnier wants to merge 1 commit into
mainfrom
hotfix/quote-coverage-cohort-naming
Closed

Flotapponnier wants to merge 1 commit into
mainfrom
hotfix/quote-coverage-cohort-naming

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-pick of #2823 (merged to dev as 9232bfb4), nothing else. Diff against main is the same single file, 7 insertions, 1 deletion.

The Robinhood explainer, live on production now, reads:

Four aggregators cover this chain: Mobula, KyberSwap, ParaSwap and Relay.

Relay is not an aggregator. It is a cross-chain relayer, and the rest of the site already says so: type: relay on bridge-fee and bridge-realized-cost. The same actor had two natures depending on the page.

Not changed

The probe is sound and nobody leaves the cohort. All five answer the same question (a 1 USDC quote on a token that graduated in the last 24 hours), and Mobula answers it on /api/2/swap/quoting, a swap quoting endpoint rather than a price one. The schema's own taxonomy names "Mobula's aggregator side" (spec-schema.ts:126). Removing a member whose measurement is valid would be the wrong fix for a naming problem.

Changed

  • every provider carries a type (aggregator ×4, relay ×1), so the page states what each one is
  • the Robinhood sentence names the composition instead of calling all four aggregators
  • a methodology line gives the composition outright and says why the relayer is scored here

Going to main directly because the wrong claim is on production now and dev is well ahead of it.

Verified

pnpm validate 235 specs, pnpm typecheck, pnpm test 430 pass / 0 fail.

The Robinhood explainer read "Four aggregators cover this chain: Mobula,
KyberSwap, ParaSwap and Relay." Relay is not an aggregator. It is a
cross-chain relayer, and the rest of the site says so: it carries
type: relay on bridge-fee and bridge-realized-cost. The same actor had
two natures depending on the page.

What the probe does is sound and is not changed. All five are asked the
same question, a 1 USDC quote on a token that graduated hours ago, and
Mobula answers it on /api/2/swap/quoting, a swap quoting endpoint rather
than a price one. The spec schema's own taxonomy names Mobula's
aggregator side. Nobody is removed from the cohort, because nobody is
answering a different question.

What was wrong is the naming around the measurement. Every provider now
carries a type, so the page states what each one is rather than
flattening a relayer into the aggregator cohort, and a methodology line
gives the composition outright: four aggregators and one relayer, with
the reason the relayer is scored here at all.

Found because the page is read as a ranking of DEX aggregators, and
OpenChainBench is built by one of the five. A cohort that overclaims what
its members are costs more here than it would elsewhere.

(cherry picked from commit 9232bfb)
@Flotapponnier

Copy link
Copy Markdown
Collaborator Author

Closing: already shipped, by a different route than the others.

The relayer-versus-aggregator distinction landed on dev and reached main
with the release merge #3021. Verified in main's token-quote-coverage.yml:

  • 5 type: fields on the provider blocks
  • the "Cohort composition" methodology bullet
  • the "cross-chain relayer" wording, twice

The Robinhood paragraph this PR rewrote has since been rewritten again by #3025
to say five quote sources rather than four, and it kept the relayer distinction
this PR introduced.

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