Skip to main content

TUNDRA Contract Reference

Every contract and address behind TUNDRA lending on Bitcoin mainnet. Each link opens the contract on the SUBFROST explorer.

Before trusting a pool id from anywhere else, check it against the factory: factory.GetPool(market id) == pool and pool.GetFactory() == 4:881050. See Discovery.

Core contracts​

contractidwhat it does
Factory4:881050Creates markets, keeps the market id → pool registry, the enabled IRMs and LLTVs, and the fee settings. Its own id is also the governance token
Pool template4:668244The code every market's pool is cloned from. Holds nothing
Adaptive curve IRM4:674184The interest rate model both markets use
Liquidation callee4:999999Lets a liquidator repay out of the seized collateral by selling it on the AMM at 4:65522

Markets​

marketpoolmarket idloan tokencollateraloracle adapterLLTVminimum borrowfee
DIESEL / frUSD2:98445969751733f39479fa2c4291126ec4df55b8670e9e3a901c14a2d095532a5f573frUSD 4:1776DIESEL 2:04:72796740%3,000 frUSD10%
DIESEL / frBTC2:9861922fd73d6dd54b57378d4ce1c565406053933739f6fd4a2d3643556e3bd470d5afrBTC 32:0DIESEL 2:04:72796840%0.035 frBTC10%

The pool id is also the id of that market's supply token (pool units, symbol TUN-P).

Oracle​

contract or addressidwhat it does
Oracle adapter, frUSD market4:727967Reads TUNDRACLE market 4 (DIESEL in USD). Reverts when the price is stale
Oracle adapter, frBTC market4:727968Reads TUNDRACLE market 5 (DIESEL / frBTC). Reverts when either leg is stale
TUNDRACLE4:9010The price layer: per-feed prices, a 144-block freshness limit, and market ratios
DOOMACLE4:9000The SUBFROST oracle that TUNDRACLE subscribes to
DOOMACLE signing group (6-of-9 FROST)bc1pp9xj9ww24x5wenae96dpj3jtxnvrwehn4gqtam7xfc0dfwcmn2rqnms0duWrites the prices TUNDRA reads
TUNDRACLE configuration token2:96668Configures and upgrades TUNDRACLE. Cannot set a price

Read TUNDRACLE and DOOMACLE through these proxy ids, never through their implementation contracts. See The Oracle and the protocol page.

Governance and fees​

itemvalue
Governance tokenone unit of 4:881050 (the factory's own id)
Enabled LLTVs35%, 40%
Enabled IRMs4:674184
Default fee for new markets10% of interest
Maximum fee25% of interest
Fee recipientbc1ptttaar6ugd267nj2lg5ndxu9tcec96kllamqr9uzw7naruxxvlps2qf2vw
id
DIESEL2:0
frBTC32:0
frUSD4:1776
DIESEL / frBTC AMM pool (DIESEL price source, liquidation exit)2:77087

Source code​

The TUNDRA contracts are developed in a private repository. Source is available on request.