On-Chain Fixed Funding Rate for Perpetual Markets on Hyperliquid
TenorFi is an Aqua-native decentralized protocol that introduces fixed-for-floating interest-rate swaps to perpetual futures funding. In perpetual markets, variable funding rates fluctuate wildly, creating unpredictable costs that keep institutional capital away and have historically caused billions in yield compression, such as during the Ethena crash.
TenorFi solves this problem by allowing traders to lock in a fixed funding rate with zero upfront collateral. By leveraging 1inch Aqua, a fixed premium is pulled from the user's wallet just-in-time each hour, while the protocol's insurance reserve covers the actual variable funding cost on their Hyperliquid position. This transforms an open-ended variable risk into a predictable, deterministic cost.
TenorFi's architecture is built on a three-layer stack deployed on Base mainnet, completely circumventing traditional custodial swap contracts.
Execution Engine (1inch Aqua & SwapVM): The most notable and "hacky" technical achievement is our use of SwapVM. We didn't just build a spot swap; we built a custom _fundingSettle SwapVM opcode to execute a periodic-settlement derivative. Instead of locking margin dead in a smart contract, users ship collateral as an Aqua virtual balance, and the opcode nets the fixed-vs-floating difference deterministically each period. This enforces a "no-default" bound automatically because Aqua cannot push tokens that were never shipped.
Oracle Layer (Chainlink CRE): To settle the swap, we needed a funding-rate oracle that didn't previously exist. We used Chainlink CRE to fetch the real-time hourly BTC funding rate from the Hyperliquid API, run it through DON consensus, and write it on-chain as a funding index via a KeystoneForwarder to our KeelFundingReceiver.
Onboarding Engine (LI.FI Composer): A hedge only works if both legs open simultaneously. We utilized a single LI.FI Composer Flow to handle dual-leg onboarding in one signature. It bridges USDC cross-chain, depos

