Deposits

Execute complex transactions as a single transaction using contract calls. Swing enables deposits into staking, lending or liquidity protocols from any token as a single transaction which otherwise would have taken anywhere between 2-10 transactions.

How it Works

Swing supports cross-chain and single-chain contract calls, enabling developers to call and execute any function on the same chain or across multiple chains. Swing API and Contracts seamlessly connect to the bridges, DEXes and protocols to execute complex on-chain transactions as one transaction.

Our contracts were audited on 31 May 2023, by Peckshield Audit. view audit report

Monetize your integration by collecting partner fees up to 10% of the transaction volume. Learn More

1. Cross-Chain Deposits

Swing passes tokens and contract-call data through a bridge to bridge assets and executes the contract call(s) on the destination blockchain. This allows developers to perform cross-chain transactions in a single transaction on the source blockchain, without the need to switch RPC or sign another transaction on the destination blockchain.

The bridges will pay the gas fee for the transactions on the destination chain. For example, Stargate requires native tokens to be provided to cover the destination-chain gas cost for sending the tokens to the user. Swing estimates the destination transaction fee and returns it in the quote response.

For example, in a normal any-to-any cross-chain swap, converting MATIC on Polygon to ETH on Ethereum and staking into Lido staking protocol requires several steps. With Swing, you can perform all four steps in a single transaction on Polygon by passing the destination swap contract-call data through a bridge to execute the final swap and staking for the user and then send the staked tokens to the user.

Supported Bridges:

  • Stargate
  • Celer (coming soon)

Supported chains:

  • Ethereum
  • BSC
  • Avalanche
  • Polygon
  • Arbitrum
  • Optimism
  • Fantom
  • Moonbeam (coming-soon)

Looking to get access to this functionality on other chains? - Please reach out to us to discuss your needs - Explore Partnership.

2. Single-Chain Deposits

Swing API passes contract-call data to Swing Contract to execute multiple transactions as one single transaction on the same chain. This allows developers to build an experience that allows users to send any token to deposit tokens into a protocol and more.

For example, a user sends USDT on Ethereum to stake ETH into the Lido protocol. Swing swaps USDT to ETH with Paraswap, deposits ETH into Lido protocol and sends stETH to the user's wallet - all in one single transaction.

Supported chains:

  • Ethereum

Supported DEX:

  • Paraswap
  • Uniswap, 1inch and more

Looking to get access to this functionality on other chains? - Please reach out to us to discuss your needs - Explore Partnership.

Use Cases

Swing unlocks new possibilities for DeFi applications, making them more flexible, efficient, and user-friendly. Below you can find some of the most exciting use cases:

1. Staking Protocol Deposits

Users can use any asset on any supported chain to stake a token directly into a staking protocol. This provides flexibility to the users by allowing them to stake with one transaction without having to figure out how to get an asset to stake.

Example: A user can send USDT on Polygon to stake ETH on Ethereum to Lido Protocol and receive stETH in their wallet.

Some of the supported protocols:

  • Lido
  • RocketPool
  • Stakewise
  • and more…

Looking for custom protocol support? - Please reach out to us to discuss your needs - Explore Partnership.

2. Lending Protocol Deposits

Example: Users can send USDT on Polygon to supply AVAX on Avalanche to Aave Protocol and receive aAVAX in their wallet to start earning rewards.

Looking for custom protocol support? - Please reach out to us to discuss your needs - Explore Partnership.