Skip to article content Fraxlend

Fraxlend connects lenders and borrowers through isolated ERC-20 markets

Fraxlend is a lending protocol where each isolated market pairs one ERC-20 lending asset with a different collateral token. Lenders supply the asset and receive fTokens, which record their share of that market's assets. Borrowers deposit collateral and pay interest on the assets they borrow. Each pair has its own pricing inputs and lending parameters. Interest can increase a lender's claim, while collateral values, available liquidity, and bad debt affect what participants can borrow or recover.

Updated -

A lender's fToken balance measures shares; the pair's accounting determines how many underlying tokens those shares represent.

Isolated markets within the Frax ecosystem

An isolated pair keeps its own lender claims, borrower debts, and collateral balances. Its lenders fund borrowing against the collateral accepted by that pair. Liquidity and loan balances belong to the pair, so its utilization describes borrowing against its own asset supply. A protocol-wide lending total cannot establish how much of a particular pair's capital remains available.

The system was created in part for the Fraxlend AMO, a contract that supplies protocol-owned assets for borrowing. That relationship connects individual lending markets to the wider Frax protocol's income and collateral backing. Other lenders also supply assets to the pairs, receiving the corresponding claims through fTokens.


Terms that belong to the selected pair

A pair's token contracts and configuration determine which asset lenders supply, which collateral borrowers pledge, and which lending terms apply. Its oracle, rate calculator, maximum loan-to-value ratio, and liquidation settings shape that relationship. Even pairs that lend the same token can have different collateral exposures and borrowing demand. Their fTokens represent separate pools of claims. The selected pair's configured maximum LTV supplies its debt-to-collateral threshold when that limit is active. Contract version and administrative permissions also determine which settings can change after deployment.


Lender claims and fToken accounting

A lender receives fTokens at the pair's share price, so the deposit amount and the number of shares need not match. The lending account tracks an asset amount and a share count in a structure called VaultAccount . With token and share precision aligned, dividing the lending account's asset amount by its share count gives underlying tokens per fToken. A deposit increases both accounting totals proportionally, subject to rounding. It adds a claim without handing the new depositor the interest that earlier lenders already earned.

During interest accrual, a lender's existing fTokens can represent more underlying assets without any increase in that lender's token balance.

The share price measures units of the underlying asset, separate from its value in another currency. A growing token claim can still lose value in that currency if the underlying token's price falls sufficiently. Bad-debt adjustments can also reduce the claim itself.

A larger asset claim with the same fToken balance

An unchanged fToken balance can represent earned interest when the pair's assets increase relative to its shares. For this hypothetical accounting example, assume a lender balance of 86 fTokens, a total supply of 4300 fTokens, and an initial asset account amount of 4486 underlying tokens. The lender owns 2% of the shares, representing 89.72 underlying tokens.

Now assume borrower interest increases that asset amount to 4529 tokens. No deposits, redemptions, fee-share minting, or bad-debt adjustments occur between the snapshots. The share count stays at 4300, and the lender still holds 86 fTokens. The relationship is asset claim = lender shares / total shares * total asset amount . Using the later amount gives 86 / 4300 * 4529 = 90.58 underlying tokens.

The claim has grown by 0.86 underlying tokens even though the wallet's fToken balance has stayed constant. These balances describe accounting, with no assumed annual yield or elapsed investment period. A different total asset amount changes the claim, while deposits or fee-share minting can also change the share count.


Borrowing and the debt-to-collateral ratio

A borrower owes the asset token that the selected pair lends, together with the interest that accrues on that debt. The borrowing account tracks outstanding debt through amounts and borrow shares. Capitalized interest increases the amount owed. Loan-to-value, or LTV, expresses debt value divided by collateral value, with both values measured on the same basis. Expressed as a percentage, LTV = debt value / collateral value * 100 . A change in either token's relative price can move that ratio, even when the borrower makes no further withdrawal.

In a collateralized pair with an active LTV limit, a borrower's position becomes unhealthy when its LTV exceeds that limit. Adding collateral or repaying debt lowers LTV, holding other inputs constant. Full repayment covers the remaining principal and accrued interest; withdrawing collateral while debt remains must satisfy the pair's applicable solvency rules.


Utilization and the interest-rate calculator

Utilization measures the fraction of a pair's accounted asset amount that borrowers owe. The configured calculator determines how that fraction influences borrowing costs.

Pricing from current utilization

The Linear Rate calculator derives the borrowing rate from utilization along its configured rate curve. Lower utilization produces lower rates, while higher utilization produces higher rates. Its parameters determine the curve, so a utilization reading does not identify a universal borrowing rate across all pairs.

Rate models that also respond over time

Time-weighted adjustment

The Time-Weighted Variable Rate adjusts interest over time relative to a target utilization range. Below the target utilization range, the rate falls toward its configured minimum; above the range, it rises toward its configured maximum. The model holds the rate steady while utilization stays within that range. The configured adjustment speed determines how quickly sustained borrowing conditions affect the rate.

Variable Rate V2

Variable Rate V2 responds immediately to utilization along a rate curve and adjusts that curve over time. Sustained low or high utilization changes the curve's shape. Lender returns also depend on how much capital earns borrower interest and any applicable protocol interest fee.

Oracle prices and the contracts around each market

The oracle supplies the exchange-rate information that connects the asset token to the collateral token. That valuation feeds the assessment of collateral coverage; token quantities alone cannot establish position health. Separately, the Fraxlend Pair Deployer creates pair contracts, and the pair registry records deployed markets. The rate calculator determines interest rather than collateral valuation. These components perform different jobs within the same market: a rate update changes debt growth, while a valuation change can alter how much collateral covers existing debt.


Liquidations and losses within a pair

A liquidator can repay an unhealthy borrower's debt and receive collateral under the pair's applicable liquidation rules. The liquidation incentive affects the collateral taken for the repayment. Version 3.0.0 distinguishes liquidations that exhaust collateral from those that leave collateral, with separate incentive settings. Collateral availability also limits what a liquidator can receive. The borrower's loss of collateral and the lender's recovery of borrowed assets are separate effects of the same liquidation.

Visual outline: Fraxlend: Liquidations and losses within a pair

View full-size image

When liquidation exhausts a borrower's collateral while debt remains, Dynamic Debt Restructuring writes off the remaining debt through the affected pair's accounting. A bad-debt write-off reduces the total asset amount against which that pair's fTokens have claims. Lenders in that market therefore share the reduction in recoverable underlying assets. Isolation locates this accounting loss within the affected pair; it does not remove the risks of its collateral, oracle, or contracts.

Ordinary interest accrual increases lender claims, while a write-off can reduce them. An increasing share price during normal operation does not protect principal.


Redemption and available underlying assets

A lender redeems fTokens for the underlying asset at the applicable share conversion. The pair's total asset account includes assets owed by borrowers, so the full accounting claim need not be immediately available as unborrowed tokens. Redemption requires enough available underlying liquidity. Version 3.0.0 contracts also enforce their withdrawal pause state. A share valuation therefore describes the claim's size, while liquidity and applicable contract restrictions determine whether a requested redemption can execute.

Holding the underlying token directly leaves its price exposure intact. Lending adds borrower interest, a claim on a particular pair, and that market's liquidity and loss mechanisms.

Fraxlend: reader questions

Can custom Fraxlend loans allow an LTV above 100%?

Custom Term Sheet deployments can set maximum LTV above 100%, provided that the deployment uses a borrower whitelist. That configuration permits undercollateralized lending within its restricted borrower scope. It does not establish the borrowing terms of ordinary collateralized pairs, whose own configured limits govern their positions.

Do borrowers receive an ERC-20 debt token?

Borrowers have borrow-share balances recorded inside the pair contract, without receiving an ERC-20 token that represents the debt. The fTokens issued to lenders represent asset claims.

Is a pair's maximum LTV permanent after deployment?

Maximum LTV can change in version 3.0.0 if the pair's timelock authority retains its setter permission. Revoking that setter prevents future changes through it. The isMaxLTVSetterRevoked flag records the revocation state.

Does another account need permission to redeem my fTokens?

Version 3.0.0 requires an fToken allowance when another account redeems shares that you own. Redeeming your own shares does not require that delegated allowance.

What separates an asset withdrawal from an fToken redemption?

In version 3.0.0, withdrawal specifies the underlying asset amount to receive, while redemption specifies the fToken share amount to spend. Both consume lender shares using the pair's accounting conversion.

How is a protocol interest fee calculated?

Version 3.0.0 applies any configured protocol interest fee to accrued borrower interest. The accounting assigns the corresponding fee claim to the pair contract through newly issued shares.