← BackCrabFi
Automated DeFi Hedging

CrabFi

Full-stack DeFi platform that hedges impermanent loss on Uniswap v3 positions by automatically opening/closing perpetual futures on Hyperliquid.

// Contributions
ArchitectureDevelopmentUI DesignSmart Contracts
// Technologies
ReactTypeScriptEthers.jsPythonVite
CrabFi
// 01

The Problem

Liquidity providers on Uniswap v3 face impermanent loss when prices move outside their position range. Manual hedging is time-consuming and error-prone, requiring constant monitoring of multiple platforms.

// 02

The Solution

CrabFi automates the hedging process by monitoring Uniswap v3 positions and automatically opening/closing perpetual futures on Hyperliquid to offset impermanent loss. The platform runs async Python bots that react to price movements in real-time.

// 03

Learnings

Building at the intersection of DeFi protocols taught me to think about latency, gas optimization, and the importance of fail-safe mechanisms. Every transaction costs money — there's no room for bugs in production.

// 04

Built With AI

CrabFi was built in collaboration with Claude (Anthropic). From architecture decisions to debugging complex async flows, AI accelerated development while I focused on strategy and risk management logic.