π Swapping
Overview
FlashFi enables seamless cross-chain swaps using Squid Router, allowing users to exchange tokens across different blockchains. For example, you can swap USDC on Ethereum to ETH on Arbitrum with minimal effort.
How It Works
Fetch Swap Route β Queries Squid Router for the best swap route.
Prepare Transaction β Builds the transaction using Ethers.js.
Execute Swap β Sends the transaction and returns a confirmation.
Fetching the Best Swap Route
FlashFi first queries Squid Routerβs API to determine the best path for swapping.
Executing the Swap
Once the route is determined, the transaction is signed and sent.
FlashFi also provides an AxelarScan link to track transaction status.
Why Use FlashFi for Swaps?
β Cross-Chain Compatibility β Swap assets between different blockchains. β Optimized Routes β Uses Squid Router for efficient swaps. β AI-Powered Execution β Simple text-based commands trigger complex DeFi operations. β Secure Transactions β Signed with Privyβs server wallets for safety.
Last updated