Minimum acceptable targetAsset amount after the swap.
The transaction reverts with SlippageExceeded if the DEX returns less.
Set this to protect against price manipulation or large slippage.
Source G-address providing sourceAsset.
Must sign the transaction.
Gross amount of sourceAsset to swap and bridge, in its smallest unit.
Contract address of the token the source holds and wants to swap.
Ordered list of DEX pool contract addresses through which the swap is routed.
Each pool must implement swap(min_amount_out: i128, to: Address) → i128.
Destination C-address that will receive targetAsset.
Contract address of the token the target should receive after the swap.
Options for OnboardingBridgeSDK.fundCAddressWithSwap.
The bridge contract will:
sourceAmountofsourceAssetfromsource.swapRoute(an ordered list of DEX pool addresses).targetAsset.targetAssetamount totarget.Example