Architecture
BOLE operates as a top-level component within HyperLiquid’s application state, at the same level as perpetual markets and spot orderbooks. This means lending operations settle in the same block as trades, with no cross-contract calls or bridge latency. Each supported token has its own reserve pool with independent interest rates, utilization tracking, and liquidation parameters. Users supply tokens to earn yield or borrow against their collateral.Pool State
The lending pool maintains 21 state fields at the top level of the application state:
Each token’s reserve is tracked through several nested structures:
Interest Rate Model
BOLE uses a kink model (also called a jump-rate model), the same design used by Compound and Aave. The model creates two distinct rate regimes based on pool utilization.Parameters
Below the kink: Interest rates increase linearly from a base rate to
kink_rate. This region encourages borrowing while utilization is healthy.
Above the kink: Interest rates increase steeply (jump multiplier) to incentivize repayment and additional supply. This protects lenders from liquidity crunches.
Risk-Free Rate
The baseline risk-free rate is determined through validator consensus:- Each validator submits their own rate value
- The median of all submitted values becomes the consensus rate
- Recalculation is rate-limited to prevent manipulation
Rate Types
Reserve State
Each token’s reserve pool exposes its current state through the API.Query via the
/info endpoint with {"type": "borrowLendReserveState", "token": "<token>"} for a single token, or {"type": "allBorrowLendReserveStates"} for all tokens.User State
Per-user borrow/lend positions are tracked individually.Query via the
/info endpoint with {"type": "borrowLendUserState", "user": "<address>"}.Liquidation System
BOLE implements three distinct liquidation modes, each suited to different scenarios.Market Liquidation
Immediate market-order liquidation. When a position’s LTV exceeds the liquidation threshold, a market order is placed to close the position. This is the fastest liquidation mode but can cause slippage in thin markets.Backstop Liquidation
A backstop system operates as a safety net when market liquidations fail or are insufficient. Key components:
HIP-3 deployed tokens have their own dedicated backstop liquidator with separate parameters, ensuring third-party token liquidations do not impact core markets.
Partial Liquidation
Reduces a position incrementally rather than closing it entirely. Apartial_liquidation_cooldown prevents rapid repeated partial liquidations from destabilizing positions.
TWAP Liquidation Orders
All liquidation modes can execute through TWAP (Time-Weighted Average Price) orders to minimize market impact:- Liquidation is split into slices executed over time
- Each slice has a
size_incrementcontrolling how much is liquidated per window - Orders include standard book order properties (timestamp, size, reduce-only)
- Liquidation processing runs as a periodic background task
Liquidation Execution
Liquidation processing runs as a periodic background task in the execution pipeline, alongside funding rate updates and HIP-3 oracle refreshes. The fixed execution sequence is:Integration with Portfolio Margin
BOLE positions are fully integrated with HyperLiquid’s portfolio margin system:- Borrow positions count toward portfolio margin utilization
tokenToPortfolioBorrowRatiotracks per-token borrow exposure within the portfolioportfolioMarginRatioprovides the aggregate margin ratio including BOLE positions- Portfolio margin users can use supplied tokens as collateral for perpetual positions
EVM Bridge Integration
BOLE positions can be bridged to the HyperEVM (chain 998):
This enables DeFi composability on the EVM side while the lending logic remains on the L1.
Governance Controls
BOLE pool parameters are controlled through sixSetBole governance actions:
Additionally, validators can set reserve accumulators directly via
VoteGlobalAction::SetReserveAccumulator and configure backstop parameters for HIP-3 tokens separately.
Account Abstraction
BOLE activation is part of HyperLiquid’s unified account system. When a user activates a unified account, their BOLE token positions are migrated automatically. The migration handles multiple source types:- Sub-account positions
- DEX positions
- Spot positions
Funding Rate Connection
BOLE interest rates feed directly into perpetual funding rates:
This creates a unified interest rate framework where lending rates and perpetual funding rates are economically linked, preventing arbitrage between the two systems.