LogoLogo
  • šŸ––Introduction
  • Products
    • šŸ’«Cross Chain Swaps
      • Core Solutions and Advantages
      • Single Chain Swaps/Meta-aggregation
    • šŸ‘¾Bridge
      • Direct Staking
      • Partnership Request
    • šŸš€Gas Transfer
    • šŸ’°Farm
      • Stablecoin Pools
      • ITP Farms
    • šŸŽ‡ITP Token
      • Contract Addresses
  • Learn More
    • šŸ¤Integrations
      • LayerZero
      • Circle CCTP
      • Chainlink CCIP
    • 🪐Scalability
      • Interchain Optimal Swaps
      • Automated Arbitrage Pool
      • Interchain Order Book
      • API SDK
      • Cross-Chain DEX Aggregator
    • šŸ‘½Socials and Community
    • šŸ”—Supported Chains
  • Rocket Science
    • šŸ›°ļøTechnical Implementation
      • Diagrams and Charts
      • Swaps
      • Cross-Chain Message
      • Slippage Optimization
      • Destination Chain
      • Stablecoin Liquidity
      • Variable Token and Variable Balance
      • Events
      • Swap on the Same Network
      • Fee Distribution
      • Manager Role
    • šŸ“ƒContracts
    • šŸ›”ļøAudits
  • Guides
    • Cross-Chain Trading
    • Bridge
    • Gas Transfer
    • Assets Refund
    • Explorer
    • Testnet Bridge
  • TERMS & PRIVACY
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  1. Rocket Science
  2. Technical Implementation

Slippage Optimization

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%.

Name
Notation
Function

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:

T←Si:Ai=max(Aj:Aj≤Amax)T ← Si : Ai = max(Aj : Aj ≤ Amax) T←Si:Ai=max(Aj:Aj≤Amax)

PreviousCross-Chain MessageNextDestination Chain

Last updated 1 year ago

šŸ›°ļø