Repository navigation
port to main: token-quote-coverage quotes one USDC on BNB Chain (#3308) - #3309
Merged
Merged
Conversation
) * 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>
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.
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.