Skip to content

port to main: token-quote-coverage quotes one USDC on BNB Chain (#3308) - #3309

Merged
Flotapponnier merged 1 commit into
mainfrom
port/3308-main
Oct 27, 2026
Merged

Flotapponnier merged 1 commit into
mainfrom
port/3308-main

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-pick of #3308 (merged to dev as 7f9b106) so main and dev carry the same harness code.

ParaSwap started rejecting mismatched decimals around 2026-10-26 ("Source Decimals Mismatch"), which put its BSC coverage at 0. The fix sends one real USDC per chain (18 decimals on BNB Chain) and stops sending a hardcoded destDecimals.

The harness runs on the OCB VPS and was already redeployed from 7f9b106; this PR changes nothing on the site.

)

* token-quote-coverage: quote one USDC on BNB Chain, not 1e-12 USDC

USDC on BNB Chain (0x8AC76a51...580d) has 18 decimals. KyberSwap, ParaSwap,
Odos and Relay sent a flat 1000000 base units on every chain, which is one
USDC on Base and Robinhood Chain but 0.000000000001 USDC on BNB Chain, and
ParaSwap was told srcDecimals=6. The amount and ParaSwap's srcDecimals now
follow the chain's stablecoin.

* paraswap: stop sending destDecimals=18

ParaSwap answers "Destination Decimals Mismatch" when destDecimals does
not match the token, so every 6- or 9-decimal destination counted as a
miss. Left out, the API reads the token's own decimals.

---------

Co-authored-by: HEY Research Lab <327801004+hey-research-lab@users.noreply.github.com>
Co-authored-by: Flotapponnier <160007691+Flotapponnier@users.noreply.github.com>
@Flotapponnier
Flotapponnier merged commit 82890e5 into main Oct 27, 2026
2 checks passed
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.

2 participants