Use this file to discover all available pages before exploring further.
In Bend, the interest rate you pay as a borrower is set by an Interest Rate Model (IRM) chosen when the market is created.The only IRM used for Bend markets is the AdaptiveCurveIRM. It differs from typical pool IRMs in two ways:
Immutable: The model cannot be changed or upgraded. It must respond automatically to market conditions, including rates on other platforms.
Higher target utilization: Supplied assets in Bend are not used as collateral, so markets don’t need to hold large buffers for liquidations. The protocol can target higher utilization and use gentler illiquidity penalties.
The AdaptiveCurveIRM keeps utilization near 90%. In the short term it avoids utilization drifting too low or too high; over time the rate adapts to market conditions.Two mechanisms work together:
Each time you (or any user) interact with the market—e.g. borrow or repay—utilization changes and the rate updates along the curve.For instance, the following are sample utilization-to-rate relationships:
Utilization
Rate
90%
r90%
100%
4×r90%
The Curve Mechanism is designed to respond to short-term fluctuations in utilization, helping maintain healthy market liquidity during periods of sudden borrowing or repayment.
This mechanism continuously shifts the curve to adjust to market conditions over time.The curve shifts over time so the rate adapts to market conditions even when no one is borrowing or repaying.
The adaptive mechanism dynamically shifts the rate curve in response to changing market conditions, even during periods without user interaction.The key value that moves the curve is r90%—the rate at the target utilization. This value gradually changes over time:
If utilization rises above the target (90%), r90% will steadily increase.
If utilization falls below the target, r90% will steadily decrease.
The pace at which r90% moves is recalculated whenever the market is updated (such as through borrowing or repaying). The greater the gap between current and target utilization, the faster r90% (and thus the whole curve) moves in the appropriate direction.Example: if utilization stays at 100% for five days, r90% can roughly double in that period (at maximum speed).
The values of some
constants
are hardcoded into the code deployed on Berachain, such as TARGET_UTILIZATION,
INITIAL_RATE_AT_TARGET, etc.
Error (e(u)) is the normalized difference between the current utilization (u(t)) and the target utilization (utarget), scaled so that the distance between utarget and u=1 equals the distance between utarget and u=0.∀t,e(u)=⎩⎨⎧1−utargetu(t)−utarget,utargetu(t)−utarget,if u(t)>utargetif u(t)≤utarget
Curve (curve(u)) determines the shape and sensitivity of the interest rate response to changes in utilization around the target, with different slopes below and above utarget controlled by the constant kd.curve(u)=⎩⎨⎧(1−kd1)⋅e(u)+1,(kd−1)⋅e(u)+1,if u≤utargetif u>utargetwithkd=4
History of interactions (H) represents the set of all past interaction times up to time (t), including the initial time (0). Noting that ti the time at which ith interaction occurred.∀t,H(t)={0}+{ti}ti<t
Speed factor (speed) determines how fast the interest rate changes over time based on the error at the last interaction, scaled by (kp).∀t,speed(t)=exp(kp⋅e(u(last(t)))⋅(t−last(t))),with kp=50
Rate at target (rtarget) represents the interest rate when utilization equals the target utilization, evolving over time based on the speed factor.∀t>0,rT(t)=rT(last(t))⋅speed(t)At any time (t), the borrow rate (r) is given by the formula:r(t)=rT(t)⋅curve(u(t))
The Supply APY is calculated considering the utilization and the fee. The formula is:supplyAPY=borrowAPY×utilization×(1−fee)Where:
fee is the fee of the market on a per-market basis and portion of the interest paid by borrowers that is retained by the protocol. See Yield & Fees for more details.