Integrations

Swap Integration

How swaps work on Arc: three modes, four providers, and the checks made before you sign.

Three swap modes

ModeProvidersGood for
Best priceUniswap v3 (direct pool quotes) and KyberSwap aggregatorComparing two sources for the same pair and taking the better output.
Any tokenLI.FI routingRouting a wider set of tokens through the LI.FI aggregator.
Circle swapCircle App KitSwapping between USDC, EURC and cirBTC on Arc.

Third-party providers are separate services with their own terms. SocialPay shows their quotes. It does not control their liquidity or pricing.

How a swap runs

  1. Pick the token you pay and the token you receive, and enter an amount.
  2. Choose a maximum slippage. Higher values let the price move further against you before the swap settles.
  3. Review the quote: expected output, guaranteed minimum output, provider details and the contract that needs your approval.
  4. Approve the exact spender if needed, then sign the swap.
  5. The result is recorded in Activity with a link to Arc Explorer.

Uniswap quotes come straight from the Uniswap v3 QuoterV2 contract on Arc across the 0.01%, 0.05%, 0.3% and 1% fee tiers. The swap goes through SwapRouter02 and expires 20 minutes after you confirm.

Checks before you sign

Every transaction a provider returns is checked in your browser before the wallet is asked to sign. The swap is cancelled if:

  • The route attaches native value to the swap.
  • A Uniswap swap does not point at the known Uniswap router on Arc, or a KyberSwap swap does not point at its known router.
  • A LI.FI approval target does not match the swap contract.
  • The route returns no output, or a minimum output of zero.

Arc uses USDC for gas, so the app keeps a 0.05 USDC reserve when you swap your whole USDC balance. USDC and the native gas token are the same asset on Arc, so a USDC to native swap is never offered.

Known limits

  • LI.FI is used without an API key. Its free rate limit is small, so that mode asks you to press a button to fetch a price instead of updating while you type.
  • Token lists combine what LI.FI and KyberSwap publish for Arc plus USDC, EURC and cirBTC, and are cached for 30 minutes.
  • A pair with no liquidity returns a clear "no route" message instead of a bad quote.

Found something unclear or out of date? Open an issue on GitHub.