
FirmDepth
Bond-backed firm execution for Aqua’s reusable liquidity, powered by custom SwapVM logic.
Demo
About
FirmDepth adds an optional execution-certainty layer to 1inch Aqua’s reusable liquidity model. Traders can use normal Soft execution, or upgrade an eligible quote into a short-lived, maker-signed Firm commitment with a minimum output, premium, expiry, and separate output-token Bond collateral. Aqua liquidity itself remains reusable rather than being reserved. At execution, FirmDepth rechecks current capacity: Aqua settles when it can satisfy the signed minimum, while the Bond path is used only for the protected output-capacity failure case. The project demonstrates real Sepolia execution, onchain token transfers, Bond locking/release, and deterministic Base-fork sponsor evidence.
How it's made
FirmDepth is built around the official 1inch Aqua model and a customized SwapVM execution path. We added two custom SwapVM instructions: FIRM_PRICE (0x52), which validates the signed pricing snapshot, and FIRM_GUARD (0x21), which binds execution to the accepted maker, taker, order, token pair, amounts, expiry, executor, router, and collateral constraints. The exact Firm program is 0x52002100. Firm quotes use EIP-712 signatures, a Registry tracks commitment state, and a BondVault manages separate performance collateral. The SDK reconstructs terminal receipts from Registry state, Aqua/SwapVM events, ERC-20 transfers, and Bond movement instead of trusting frontend status alone. The frontend is built in React/TypeScript, the quote service runs server-side, and the public demo uses real Ethereum Sepolia with dynamic EIP-6963 wallet discovery.