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 compete on Solana to determine the best execution price.
  • The winning driver 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.
Wormhole Swap settles in under a minute. 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 driver network 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