project screenshot 1
project screenshot 2
project screenshot 3

HyperCake

Cross-chain Swap using Hyperlane and Pancake Swap Hook's to bridge

HyperCake

Created At

ETHGlobal London

Winner of

Arbitrum - Qualifying Arbitrum Submissions

Prize Pool

Project Description

§This project introduces an advanced cross-chain swap framework that utilizes Hyperlane's inter-blockchain communication capabilities to enable smooth cryptocurrency transactions between different blockchain networks. At its heart, the system incorporates PancakeSwap, a leading decentralized finance (DeFi) platform, for the creation and management of liquidity pools. This infrastructure supports the efficient exchange of USDC, a widely-used stablecoin, from the Arbitrum network to an Arb equivalent in the Base network. A pivotal feature of this process is the 'warps' provided by Hyperlane, innovative tools that serve as bridges between blockchains. These warps are instrumental in fostering interoperability and simplifying the exchange process. By ensuring fast, secure, and dependable asset transfers, these mechanisms effectively tackle prevalent issues in blockchain interoperability and asset liquidity. Consequently, this project marks a noteworthy development in the DeFi ecosystem.

How it's Made

This project uses @raimbow-kit to implement wallet connection and interaction with our back-end smart contract. On the back-end side we implemented hyperlane using hyperlane CLI to deploy a contracts mail box. We created a bridge between Arbitrum and Base deploying contracts on both end. The frontend repo is the following: https://github.com/Fyuryy/ethglobal.

The user flow is the following: A user initiate a swap ARB to USDC from our front, the swap is done and a hook is triggered in Pancake Swap, resulting in the USDC being transfered through the hyperlane contract to the Base chain were it's send to the user wallet on Base-Chain.

Issue : the delta in the pancake swap is not null, as the contract owns money to the user on the initial chain. This is an issue that V4 protocols are working on and as soon as it's addressed all our contracts will work. We can prove it with our tests that succeed to proceed to bridge with hyperlane if no tokens are send (transaction info goes through)

background image mobile

Join the mailing list

Get the latest news and updates