Introduction

Swing offers a comprehensive staking and zaps toolbox aimed at simplifying user onboarding for teams. Swing offers a versatile solution that supports staking, delegation, lending, yield deposits, withdrawals, and more, providing developers with the tools they need to build seamless flows into their applications.

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

What is Swing Staking & Zaps?

Swing is a comprehensive solution for developers looking to incorporate staking and zaps features into their applications. It abstracts the complexities of interacting with different EVM, Cosmos, and L2 blockchain protocols, allowing developers to focus on building their applications without worrying about the intricacies of staking and contract-call mechanisms.

The core functionalities of Swing include crafting, signing, and broadcasting transactions. These operations are abstracted into a simple and intuitive toolkit, saving you the trouble of interacting directly with diverse protocols.

Why use the Swing?

Swing Staking Toolkit offers numerous advantages for developers:

  • Simplified Integration: Integrate staking, delegation, lending, and yield functionalities seamlessly into your applications using Swing's comprehensive toolkit.
  • Flexible Integration Options: Choose from Swing API, SDK, or Widget to tailor integration methods to your specific needs.
  • Wide Range of Use Cases:
    • Stake any token on any chain into:
      • Ethereum Liquid staking protocols
      • Ethereum Validators
      • Cosmos Liquid staking protocols
      • Cosmos Validators
    • Send any token on any chain to zap tokens into or from:
      • Lending protocols
      • Vault protocols
      • Yield protocols
      • and more...

Staking

Swing's staking functionality is designed to provide developers with flexibility and control over their staking operations.

Buying Liquid Staking Tokens

Developers can programmatically acquire liquid staking tokens from secondary markets (DEXes). Swing integrates DEXes to provide routes for users to swap any token for LST tokens:

  • Same-chain swaps allow users to swap any token for an LST token on the same chain. Example: user swaps USDC for stETH on Ethereum.
  • Cross-chain swaps allow users to swap any token on any chain for another token on another chain:
    • EVM Example: user sends USDC on Arbitrum to swap for stETH on Ethereum.
    • Cosmos Example: user sends USDC on Arbitrum to swap for stOSMO on Osmosis.
  • Supported Routes:
    • EVM 🔁 EVM ✅
    • EVM 🔁 Cosmos 🕑
    • EVM 🔁 Solana 🕑

Minting Liquid Staking tokens

Swing facilitates the direct minting of liquid staking tokens from Liquidity Staking Derivative (LST) protocols, offering developers an alternative approach to staking participation. Swing connects to the DEXes, bridges and staking contracts to execute staking transactions in one single transaction.

  • Same chain LST minting allows users to send any token to stake directly into an LST protocol. Example: user sends USDC on Ethereum, swing swaps USDC for ETH, swing stakes ETH into Lido’s contract and sends stETH tokens to the user’s wallet - all in one single transaction.
  • Cross-chain LST minting allows users to send any token on any chain to mint LST on another chain.
    • EVM Example: User sends USDC on Arbitrum, Swing bridges and swaps tokens for ETH on Ethereum, stakes ETH into Lido’s contract and sends stETH to the user’s wallet.
    • Cosmos Example: User sends USDC on Arbitrum, Swing bridges and swaps tokens for OSMO on Osmosis, deposits OSMO into Stride’s contract and sends stOSMO to the user’s wallet on Osmosis.
  • Swing is compatible with a wide range of staking protocols. Refer to the list of some of the supported protocols. (Note: Support extends beyond the listed protocols.)
  • Supported Routes:
    • EVM 🔁 EVM ✅
    • EVM 🔁 Cosmos 🕑
    • EVM 🔁 Solana 🕑

Native Validator Staking

Developers have the option to engage directly with validator nodes for native staking operations, providing greater control and customization.

  • Same chain validator staking allows users to send any tokens to stake natively on the same chain. Example: user sends USDC on Ethereum, USDC is swapped for ETH, ETH is staked via one of the supported validators.
  • Cross-chain validator staking allows users to send any token on any supported chain to stake into a validator node on another chain.
    • EVM Example: user sends USDC on Arbitrum, USDC is bridged and swapped for ETH on Ethereum, ETH is staked via one of the supported validators.
    • Cosmos Example: user sends USDC on Arbitrum, USDC is bridged and swapped for OSMO on Osmosis, OSMO is staked via one of the supported validators on Osmosis.
  • Supported Routes:
    • EVM 🔁 EVM 🕑
    • EVM 🔁 Cosmos 🕑
    • EVM 🔁 Solana 🕑

Zaps/Contract Calls

Swing provides developers with tools to onboard liquidity into any protocol seamlessly. Developers can initiate contract calls programmatically, enabling efficient interaction with various protocols, including lending, liquidity, vaults, yield and more.

  • Swing can call any function in any smart contract to execute deposits, withdrawals etc.
  • With Swing, integrators don’t have to worry about building contract call data for their complex transactions - Swing abstracts complexity by generating call data for your project.
  • Swing connects to the DEXes and bridges to execute complex transactions in one single transaction.

Same-chain Zaps

Allows users to use any token to send to any contract. Example: user sends USDC on Ethereum, Swing swaps USDC for ETH, calls supply function in AAVE’s contract on Ethereum to supply ETH. User receives aTokens in their wallet.

Cross-chain Zaps

Allows users to use any token on any chain to send tokens to a contract on another chain. Example: User sends USDC on Arbitrum, Swing bridges and swaps tokens for ETH on Optimism, calls supply function in AAVE’s contract on Optimism to supply ETH. User receives aTokens in their wallet.

Supported Routes:

  • EVM 🔁 EVM ✅
  • EVM 🔁 Cosmos 🕑
  • EVM 🔁 Solana 🕑

Implementation Guides

Swing abstracts the complexities of interacting with different blockchains, DEXes, Bridges and Protocols, allowing developers to focus on building their applications without worrying about the intricacies of staking and contract call mechanisms. Enable staking in your dApp through one of the integration options below:

Looking for a custom staking or zaps use case? Please contact us to discuss your needs - Explore Partnership.