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

Swap on the Same Network

When making an exchange on the same network, the frontend calls the executeLocal function, passing in the parameters the addresses of the tokens (source and destination), the address of the recipient (optional), the amount in the source token, and the parameters of the exchange route.

The contract makes the exchange, then sends the target token to the recipient. If the recipient's address is not specified, it is set to the sender's address.

PreviousEventsNextFee Distribution

Last updated 1 year ago

🛰️