Slippage Optimization
Last updated
Last updated
Whenever a user chooses the slippage, we break slippage % into six different slippage zones for the destination chain, for example, 1% slippage would be broken into 0.0%, 0.2%, 0.4%, 0.6%, 0.8% and 1%.
Depending on the actual slippage on the origin network, the cross-chain message will be formed with the actual amount of swapped asset from the origin chain. Therefore the slippage of 1% is a potential maximum slippage in our case rather than an actual one. Actual slippage may be 5 times lower or even 0%.
targetVaultAmountMax
Amax
Maximum stablecoin amount to use for swap on target chain
targetSwapInfoOption
Si
Target chain swap option
targetSwapInfoOption.fromAmount
Ai, Aj
Swap option stablecoin amount
targetSwapInfo
T
Selected swap info for target chain
Target swap info calculation: