wormhole-foundation / wormhole-sdk-ts

Wormhole TypeScript SDK
https://wormhole-foundation.github.io/wormhole-sdk-ts/
Apache License 2.0
41 stars 49 forks source link

CCTP: Per-message burn limit warning #722

Open kev1n-peters opened 2 hours ago

kev1n-peters commented 2 hours ago

The CCTP protocol implementations should fetch the per-message burn limit in the quote method and add a warning to the return value if the transfer amount exceeds the limit.

See: https://developers.circle.com/stablecoins/limits

Contract method on Ethereum for example (USDC token input address: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48) https://etherscan.io/address/0xc4922d64a24675e16e1586e3e3aa56c06fabe907#readContract#F1

Wesleyleung commented 2 hours ago

We could use the same warning message we use for bad quotes and manual txns to show this message. In addition, we should disable the "review transaction" button if the user selected this route.

1b - Txn - Auto Loading Routes (25)