Swaps

Dfns supports swapping via multiple providers to let you execute token swaps across supported EVM-chains. Below is an overview of the swap providers, what they are, and which chains each supports.

Provider
Description
Supported Chains

UniswapClassic

Ethereum Mainnet, BNB Smart Chain, Polygon, zkSync, Base, Arbitrum, Celo, Avalanche, Worldchain, etc. Check the full list here

UniswapX

The latest version of Uniswap’s swap protocol focused on efficient routing, improved UX, and better rates.

Ethereum Mainnet, Arbitrum, Base and Unichain Check the full list here

Flow Overview

  1. Get a Quote: Retrieve estimated output amounts for a given swap (input token and amount, output token, provider and slippage tolerance).

  2. Submit the swap intent: Submit a request to Swap, based on the quoteId

  3. Approve policies: If using Wallet:Sign policies, review the transactions and approve them, due to the nature of a Swap transaction, you might be required to approve up to 4 signatures/transactions.

  4. Track Status: Monitor the Swap execution.

Last updated