AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 34 Monero

feat(exchange): add cbBTC, BNB and USDT-on-BSC to Chainflip (#3840)

Public commit record

What the developer wrote

Authored by David Cumps

93/100 · Strong
feat(exchange): add cbBTC, BNB and USDT-on-BSC to Chainflip (#3840)

Chainflip added cbBTC on Ethereum and BNB/USDT on BNB Smart Chain.
Enable all three for swaps in the Chainflip provider.

- _supported: add cbbtc, bnb, usdtbsc
- _toCurrency: reverse-map cbbtc.eth, bnb.bsc, usdt.bsc; also fix the
missing usdt.sol -> usdtSol arm so USDT-on-Solana trades resolve
- _amountToNative: convert with AmountConverter.toBaseUnits instead of
double->int, fixing 18-decimal amounts (USDT-BSC minimum 10 is 1e19,
above int max) and the live ETH/FLIP/ARB-ETH above-9.223 defect
- crypto_currency.dart: add cbbtc to CryptoCurrency.all so it appears in
the picker and deserialize(raw: 103) works; all is app-wide, so cbBTC
also appears in buy/sell, contacts and charts (#3050 precedent)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit adds support for three new cryptocurrencies (cbBTC, BNB, and USDT-on-BSC) to the Chainflip exchange provider in Cake Wallet. It also fixes a numeric conversion bug where very large token amounts could be calculated incorrectly or even overflow, which could have caused swap quotes or trades to use the wrong amount. There is no direct evidence in the commit of an active security vulnerability being exploited.

Recommended action

Review AmountConverter.toBaseUnits for correct rounding/truncation behavior and decimal validation; verify that new asset tickers match Chainflip API exactly; consider adding unit tests for large 18-decimal amount conversion and for all reverse currency mappings.

Security signals we found

01

Integer overflow/precision loss in amount conversion replaced with arbitrary-precision decimal conversion

02

Missing asset mapping (usdt.sol) restored, preventing null-currency handling

03

New asset support expands provider surface area

Risk score

Why this scored 34/100

Our methodology →
Potential impact 8/30
Exploitability 5/25
Stealth signal 4/15
Affected reach 6/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.