Quote a transfer
Debounce amount input and key reads by source chain, asset, destination, amount, recipient and account. Ignore stale results when those inputs change.
- Parse the amount using the token's decimals; do not use floating-point arithmetic.
- Resolve the local OFTAdapter or OFT from the selected asset ID.
- Call
quoteOFTfor the fee-adjusted amount andquoteSendfor native payment. - Show the native currency of the source chain, not a hardcoded ETH label.
- Refresh and simulate immediately before sending.
Until the quote succeeds, show a loading state or a dash, not the input amount as a promised output. Disable submission for failed reads, insufficient balances, invalid recipient, missing route or unready compliance state.
Read contract quotes for owner action quotes and fees for splits and rounding.