Skip to main content
What it is:
Wormhole Swap leverages the Wormhole Token Bridge’s mint-and-burn architecture enhanced by Wormhole’s generic message-passing capabilities to enable seamless cross-chain, one-click token swaps. Developed by Mayan, this protocol embeds swap-specific metadata alongside Token Bridge messages, making cross-chain swaps efficient and trustless.
How it works:
  • Users initiate a swap that sends tokens via the Wormhole Token Bridge using mint-and-burn.
  • Swap details are embedded in generic Wormhole messages delivered by relayers on Solana.
  • Drivers receive all swap information and participate in a Mayan on-chain auction to determine the best execution price.
  • The auction winner performs a flash swap on Solana, obtaining the funds and atomically sending the promised output amount within the same transaction.
  • Post-swap, if the destination address is on Solana, the relayer directly transfers output tokens to the user’s wallet. Otherwise, relayers send tokens to destination chains via the Token Bridge.
Key advantages:
  • Atomic flash swaps ensure secure, simultaneous execution without intermediary risk.
  • Fully permissionless and open-source.
  • Efficient use of Wormhole messaging coupled with Mayan’s competitive auction to optimize pricing and execution.
Here is an overview of what happens when a user executes a cross-chain transaction on Mayan: Mayan WH Swap.jpg Protocol fee:
The Wormhole Swap fees are set at 10 basis points (0.10%).

WH Swap Contract Addresses

NetworkWormhole Chain IDContract Address
Solana1FC4eXxkyrMPTjiYUpp4EAnkmwMbQyZ6NDCh1kfLn6vsf
Ethereum20xBF5f3f65102aE745A48BD521d10BaB5BF02A9eF4
BSC40xBF5f3f65102aE745A48BD521d10BaB5BF02A9eF4
Polygon50xBF5f3f65102aE745A48BD521d10BaB5BF02A9eF4
Avalanche60xBF5f3f65102aE745A48BD521d10BaB5BF02A9eF4
Arbitrum230xBF5f3f65102aE745A48BD521d10BaB5BF02A9eF4
Optimism240xBF5f3f65102aE745A48BD521d10BaB5BF02A9eF4
Base300x11AA521C888d84f374B63823d9b873CAa3591f55
I