Wormhole Frens — Swim Protocol

1. What is Swim Protocol?

Swim is a multi-chain AMM that enables cross-chain swaps by establishing liquidity pools of two or more tokens across multiple blockchains. This eliminates the need for wrapped assets by allowing users to swap from a native asset on one chain to a native asset on any other supported chain. This is accomplished by utilizing Wormhole’s Portal Bridge to bridge those assets.

A. Native to native swap

Swim protocol eliminates the need for users to interact with wrapped assets by allowing a swap from a native asset on one chain to a native asset on any other supported chain.

B. Bridge status feature

Bridge status is a way for users to see where their funds are at every step of the way, without having to understand the cross-chain complexity under the hood. This unique feature provides the ability to push funds through the process if they happen to get stuck somewhere along the way, allowing anyone to continue bridging where the process left off.

Resume Swap

C. Pool Design

Here you can find more information on how pools are designed, and why Swim used AMM-style pools instead of a 1-to-1 bridging solution.

2. Solana Ignition Hackathon Winner!

Swim Protocol has come a long way in just a few short months. Back in October 2021, they won the Wormhole Prize at the Solana Ignition Hackathon, and in March 2022, they launched their Alpha mainnet.

3. Wormhole Implementation

Swim utilizes Wormhole’s Portal bridge by relying on its mint & burn mechanism, which creates wrapped assets when initiating a bridge transfer. As assets are deposited onto Swim’s smart contracts, the tokens are bridged via Portal and the resulting wrapped assets are deposited into smart contracts on the target chain. These are responsible for maintaining an accurate state of token balances in the pool.

Step-by-step

Below is an example for a ERC20 (Ethereum) to SPL (Solana) swap.

  1. User connects both Ethereum and Solana wallets to Swim
  2. A transaction is submitted on Ethereum for a ERC20 (on Ethereum) to SPL (on Solana) swap
  3. The specified ERC20 swap token is sent from the user’s ETH wallet to the Swim (Ethereum) liquidity pool
  4. Swim smart contracts detect that the respective ERC20 token has been received in the liquidity pool
  5. The Swim smart contract on Ethereum then sends the received tokens via Wormhole to Swim’s smart contracts on Solana
  6. The wormhole-wrapped ERC20 token arrives at Swim’s smart contract on Solana, which then determines the correct bonus/slippage and execution price based on the algorithm
  7. Swim credits user’s SOL wallet with the native SPL token specified (from the Swim Solana liquidity pool) based on the bonus/slippage curve.
Us, basically

4. More from Swim Protocol

Don’t be shy, the water’s fine!

5. Join the ever-growing Wormhole community

If you have questions, need support, or just want to connect, join the Wormhole community and keep up to date with our up-and-coming announcements. We’re always happy to hear your feedback. Join our discord, and drop us a comment!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Wormhole

Wormhole

Cross-chain interoperability protocol connecting high value blockchains