Skip to main content

Lending (TUNDRA)

TUNDRA is SUBFROST's lending protocol. You can supply a token to a market and earn the interest borrowers pay, or borrow that token by putting up collateral. Everything runs in alkanes contracts on Bitcoin L1. There is no custodian and no account to open: the tokens you supply sit in the market's own contract, and your borrow position belongs to your Bitcoin address.

TUNDRA is a fork of Morpho Blue, ported to alkanes. Each market is isolated, its rules are fixed when it is created, and nobody can change them afterwards, SUBFROST included.

Status

TUNDRA is live on Bitcoin mainnet with two markets, both taking DIESEL as collateral. The Lending page is being rolled out in the SUBFROST app; until it appears in your app, every action described here can be done directly against the contracts, as shown in the developer guide.

Looking for the old peer-to-peer loans?

The fixed-term, peer-to-peer loan market that used to be documented on this page has been retired. Its pages are kept under Legacy.

TUNDRA at a glance​

ModelPooled lending. One isolated pool per market
Markets liveDIESEL → frUSD and DIESEL → frBTC
CollateralDIESEL (2:0)
Loan-to-value limit (LLTV)40% on both markets
Minimum borrow3,000 frUSD, or 0.035 frBTC
InterestVariable, set by how much of the pool is borrowed, charged every block
TermNone. A loan stays open until you repay it
LiquidationPermissionless, at a 15% bonus to the liquidator on these markets
Protocol fee10% of the interest borrowers pay
Price sourceThe TUNDRACLE oracle (4:9010), a one-day median of on-chain prices
Admin keysNone that can pause a market, move funds or change a market's rules

How it works​

A market is a pair of tokens with a fixed set of rules: which token is lent, which token is collateral, which oracle prices them, which interest model applies, the loan-to-value limit, and the minimum borrow. Each market has its own contract, called a pool, which holds only that market's tokens.

There are two sides:

  • Suppliers deposit the loan token (frUSD or frBTC) into the pool and earn interest.
  • Borrowers deposit collateral (DIESEL) and take the loan token out, paying interest until they repay.

Borrowers' interest goes to the suppliers, minus the 10% protocol fee. Because each market is its own contract, a problem in one market cannot reach the tokens in another.

The two markets​

MarketYou supply / borrowCollateralLLTVMinimum borrowPool
DIESEL / frUSDfrUSD (4:1776)DIESEL (2:0)40%3,000 frUSD2:98445
DIESEL / frBTCfrBTC (32:0)DIESEL (2:0)40%0.035 frBTC2:98619

Every contract id, with explorer links, is in the TUNDRA contract reference.

Supplying and earning​

To supply, you send the loan token to the market's pool. In return you receive the pool's own token, called pool units (symbol TUN-P). Pool units are your claim on the pool. As borrowers pay interest, each pool unit becomes redeemable for more of the loan token, so your balance of pool units stays the same while what they are worth grows.

  • Withdrawing is the reverse: send pool units back to the pool and receive the loan token.
  • Pool units are ordinary tokens. You can hold them, send them or use them anywhere an alkane can be used. Whoever holds them owns the claim.
  • Pool units are counted in very small units. A new pool mints 1,000,000 pool units for each base unit of the loan token, so a wallet that shows raw balances will show a large number. The app shows them as the frUSD or frBTC they redeem for.
  • You can only withdraw what is not lent out. If most of a pool is borrowed, a large withdrawal may have to wait until borrowers repay or new suppliers arrive. High utilization also pushes the interest rate up, which encourages exactly that.

What suppliers earn​

Suppliers earn the interest borrowers pay, and nothing else. There are no token rewards. If nobody is borrowing, the supply rate is zero.

supplier rate = borrow rate × utilization × (1 − protocol fee)

Example. A pool holds 10,000 frUSD and borrowers have 9,000 of it, so utilization is 90%. Say the borrow rate is 4% a year. Borrowers pay 360 frUSD a year. The protocol keeps 10% (36 frUSD) and suppliers share the other 324 frUSD, which is 3.24% a year on their 10,000.

At 50% utilization with the same rate curve, the borrow rate would be about 2.67% and suppliers would earn about 2.67% × 50% × 90% ≈ 1.2% a year. The interest model below explains where those rates come from.

Borrowing​

To borrow, you send DIESEL to the pool as collateral and take frUSD or frBTC out, in the same transaction. The loan is paid to your Bitcoin address, and that address owns the position. Only a transaction that pays your collateral back to that same address can close it, so keep the wallet you borrowed from.

Things to know before you borrow:

  • One position per address per market. If you borrow again from the same address, the new loan is added to your existing position. A later borrow must bring collateral in at least the same proportion as your existing loan, so borrowing more can never raise your loan-to-value.
  • You get your collateral back by repaying in full and closing. There is no partial collateral withdrawal. To reduce your collateral, repay, close, and open a new position with the amounts you want.
  • Anyone can repay or add collateral to a position. Both only make it safer. You can add collateral at any time to move further from liquidation.
  • There is no due date. Interest is charged every block (about 52,560 blocks a year) until you repay. Overpaying is safe: anything above what you owe is sent back.

Loan-to-value (LTV) and the LLTV​

LTV is how much you owe divided by what your collateral is worth:

LTV = debt value / collateral value

The LLTV (liquidation loan-to-value) is the limit. Both TUNDRA markets have an LLTV of 40%. You can borrow up to 40% of your collateral's value, and if your LTV rises above 40%, because DIESEL falls or because interest adds to your debt, your position can be liquidated.

Borrowing right up to the limit means any move against you triggers liquidation. Leave a margin.

Worked example (the prices are illustrative):

  • You deposit 300 DIESEL while DIESEL is $40. Your collateral is worth $12,000.
  • At a 40% LLTV you could borrow up to $4,800 of frUSD.
  • You borrow 3,000 frUSD. Your LTV is 3,000 / 12,000 = 25%.

Health and liquidation​

Your position is healthy while your debt is at most 40% of your collateral's value. The price at which that stops being true is your liquidation price:

liquidation price = debt / (collateral amount × LLTV)

In the example: 3,000 / (300 × 0.40) = $25 per DIESEL. DIESEL can fall 37.5% from $40 before your position can be liquidated. Interest slowly raises your debt, so the liquidation price creeps up over time unless you repay or add collateral.

Once DIESEL is below $25 (as the oracle reports it), anyone can liquidate the position. The liquidator repays some or all of your debt and receives your DIESEL at a 15% discount to the oracle price. For these markets the bonus is a flat 15% (see the protocol page for the formula).

Continuing the example, DIESEL drops to $25 and a liquidator clears the whole loan:

  • They repay your 3,000 frUSD of debt.
  • They receive 3,000 × 1.15 = $3,450 of DIESEL, which at $25 is 138 DIESEL.
  • Your debt is cleared. You keep the 3,000 frUSD you borrowed, and the remaining 162 DIESEL (worth $4,050) stays in your position until you close it and take it back.
  • Your cost compared with repaying yourself is the bonus: 18 DIESEL, or $450.

A liquidator may also clear only part of a debt, as long as what remains is not below the market's minimum borrow. A position sitting at the minimum, like this one, can only be liquidated in full.

The 40% limit leaves a large buffer for suppliers. At the moment a position becomes liquidatable, its collateral is worth 2.5 times its debt, so DIESEL can fall a further 54% from the liquidation price before the collateral stops covering the debt plus the liquidator's bonus.

If collateral ever runs out while debt remains, the shortfall is bad debt. TUNDRA writes it off against the market's suppliers immediately, in the same transaction, by lowering what each pool unit is worth. There is no insurance fund.

The minimum borrow, and why it exists​

MarketMinimum position
DIESEL / frUSD3,000 frUSD
DIESEL / frBTC0.035 frBTC

Liquidating a position costs a Bitcoin transaction fee, and fees are highest exactly when prices crash. A liquidation is roughly 450 vB; at a crash-level fee of 300 sat/vB that is around $150. The liquidator's bonus is 15% of what they repay, so a position must be large enough for the bonus to cover several attempts. Below that, nobody would liquidate it, and a falling price would turn it into bad debt for suppliers.

So each market sets a floor on the total debt of a position:

  • Opening a borrow below the floor is refused.
  • A partial repayment stops at the floor. If you pay more than that but less than the full debt, the extra is sent back. To get below the floor, repay the whole debt.
  • A partial liquidation may not leave a position below the floor.

The floor is part of the market's fixed rules. It cannot be changed later.

The interest model, in plain words​

TUNDRA uses the adaptive curve interest model from Morpho Blue, with every rate charged per block.

Utilization is the share of the pool that is borrowed. The model aims for 90%: high enough that suppliers' money is working, low enough that suppliers can still withdraw.

  1. The curve. At any moment, the borrow rate is a multiple of a "rate at target":
    • at 0% utilization it is one quarter of the rate at target,
    • at 90% it equals the rate at target,
    • at 100% it is four times the rate at target.
  2. The adaptation. The rate at target itself moves slowly. While utilization is above 90% it rises, and while it is below 90% it falls. At the extremes (0% or 100% utilization) it halves or doubles in about five days. It starts at 4% a year and is kept between 0.1% and 200% a year.

So a sudden rush of borrowing raises the rate at once (the curve), and a pool that stays over-borrowed keeps getting more expensive until suppliers arrive or borrowers repay (the adaptation). Nobody sets the rate by hand.

With the rate at target at 4%: utilization 0% gives 1% a year, 50% gives about 2.67%, 90% gives 4%, and 100% gives 16%.

Risks​

  • DIESEL is volatile. Over the year of hourly prices used to set these markets, DIESEL's worst single hour was a 48.8% drop. The 40% LLTV was chosen so that no move in that history would have crossed the liquidation buffer within two hours. A faster or larger crash could still cause losses for borrowers (liquidation) and, in an extreme case, for suppliers (bad debt).
  • The oracle is slow on purpose. TUNDRA prices DIESEL with a one-day median of on-chain pool prices. That makes it hard to manipulate, and it also means the price the market uses lags the market. Liquidations can happen later than the spot price suggests, or after the spot price has already recovered.
  • A stale price stops borrowing and liquidation. Every price must have been updated within the last 144 blocks (about one day). If it has not, the pool refuses new borrows and liquidations until a fresh price arrives. Supplying, withdrawing, repaying, adding collateral and closing never need a price, so they keep working.
  • Smart contract risk. TUNDRA is new code. Its contracts went through internal review and adversarial testing, but no third-party audit has been published. A bug could lose funds.
  • No admin rescue. Nobody can pause a market, reverse a transaction, return funds or change a market's rules. That protects you from an operator, and it also means there is no one to fix a mistake.
  • Liquidity risk for suppliers. You can withdraw only what is not lent out. In a fully borrowed pool you may have to wait.
  • Losing the wallet loses the position. A borrow position belongs to the address that received the loan. If you lose access to that wallet, you cannot close the position and reclaim the collateral.

FAQ​

What does LTV mean? Loan-to-value: your debt divided by your collateral's value. Borrowing $3,000 against $12,000 of DIESEL is a 25% LTV. Each market has a liquidation LTV (LLTV), 40% on both TUNDRA markets. Above it, your position can be liquidated.

Can I borrow with FIRE as collateral? Not yet. There is no FIRE market today. Anyone can create a TUNDRA market, but a FIRE market needs four things:

  1. an LLTV that governance has enabled (today 35% and 40% are enabled);
  2. the enabled interest model;
  3. an oracle that prices FIRE in the loan token. TUNDRACLE already publishes a FIRE price in US dollars, so a FIRE / frUSD market needs only an adapter contract deployed for it. A FIRE / frBTC market also needs a FIRE-to-frBTC price added to TUNDRACLE;
  4. a listing in the SUBFROST app, which only shows markets it has verified.

The app lists FIRE / frUSD and FIRE / frBTC as coming soon.

Can I use LP tokens as collateral? Not today. An LP token is an alkane, so a market could name one, but there is no price feed for LP tokens, and pricing an LP share safely needs its own oracle design. There is no LP market, and none is listed as coming soon.

What do suppliers earn? The interest borrowers pay, minus the 10% protocol fee. Nothing else. See What suppliers earn.

Why is the minimum borrow so high? So that every position is worth liquidating even when Bitcoin fees spike. A position too small to liquidate would become bad debt for suppliers in a crash. See The minimum borrow.

Why is the LLTV only 40%? Because DIESEL moves fast. The limit was set from a year of hourly DIESEL prices, so that a position at the limit could be liquidated without loss to suppliers through every crash in that history.

Is there a deadline to repay? No. Interest accrues every block until you repay.

Can SUBFROST freeze my position or take my collateral? No. The only governance powers are enabling new interest models and LLTVs for future markets, setting the fee on interest (up to 25%), and naming who receives it. Governance cannot pause, seize, or change a live market.

What happens if the price feed stops? New borrows and liquidations are refused until it resumes. You can still repay, add collateral, close, supply and withdraw.

Who are the liquidators? Anyone. Liquidation is permissionless. SUBFROST runs a liquidation bot, and anyone else can run one. The developer guide explains how.

Next steps​