Undertaker

A price-aware router/AMM deployed on Hedera EVM leveraging Chainlink + CCIP transfers

Undertaker

Created At

ETHGlobal New Delhi

Project Description

Undertaker : Hedera CCIP Price-Aware Router Hedera Flashbridge — low-fee, price-aware AMM + CCIP-powered hops.

Features:- Reads live prices on-chain via Chainlink Data Feeds on Hedera to make routing and slippage decisions. This makes swaps price-aware and resistant to naive sandwich attacks when used correctly.

Executes swaps on Hedera EVM (single-hop AMM interaction or direct token transfer flows). This keeps UX on-chain and low-fee, showing Hedera’s EVM compatibility.

Uses Chainlink CCIP for cross-chain messaging and asset transfers (multi-hop routing over other chains). Router emits/send CCIP messages for outgoing transfers and implements the CCIP callback interface to finalize incoming transfers. CCIP is live on Hedera

Built/tested with Foundry (Solidity tests + forge scripts) and verified on HashScan.

How it's Made

  1. Built on the Second Track: Hedera EVM: Smart Contracts & Cross‑Chain Integrations for building a cross-chain price aware router, Started with exploring Hedera docs,
  2. Got hands-on with "Deploy smart contracts on Hedera with Foundry" tutorial
  3. Outlined and sketched the architectural contract of how cross-chain swapping would flow from Hedera to EVM via CCIP and Chainlink. Dived into the docs.
  4. Used Chainlink Realtime Price Feeds

Tech Used:

  • Foundry/forge
  • Vite/reactjs
  • Remix

Piecing 'em together

  • after learning key diff b/w Hedera & Ethereum, started with contract coding and how Tokens could be swapped across diff rooms(chains) via Chainlink enabled-price-apprised apis, alongwith CCIP empowered
  • MockAMM: minimal constant-product pool (no fees) for swap testing.
  • Router: reads Chainlink (aggregator) and AMM pool price, compares deviation, reverts if > threshold.
  • Decimal normalization: all price comparisons use 18-decimal normalized values.
background image mobile

Join the mailing list

Get the latest news and updates