Skip to Content
Contracts

Contracts

The live vault is v7 on Mezo testnet, chain id 31611. All contracts are verified on Sourcify with an exact match.

Testnet

ContractAddress
Vault v7 (fBTC)0x4DA2eb6942cF136126A630e4C968CE43474c0Db6
Withdrawal queue0xB4D13C2A94f9bd165CF77eC5C92D174C51ff13C3
veBTC sleeve0xee76C202a9e43988c55DC86816a6c14211Db209B
SystemMath library0x34df486c93DB9a2A263498df97BDDF04BF1d57f7
Owner, 24-hour timelock0xad37d71330152b1bC58e7f87Eba6Ab6a1fE52719
Guardian0x6CC622e02846f98dCD5a0b33FC35D0F751C7f6dE
Keeper0xC05D15b74943e9Ed14001f26D7F4b7db3EeA5a23

The vault creates the queue and the sleeve. The sleeve’s settings belong to the vault’s owner.

Retired vaults

VaultAddressState
v60xb7A15aB24483Dfe92056F73279ECF11CE00675dbLoan unwound, holders moved to v7
v50x2964612e8976b4003083E6014cA39f5fD7b41f3ALoan closed, holders moved to v6

The app shows a Move row for anyone with shares in a retired vault.

Source

FileRole
Vault.solThe ERC-4626 vault, the trove, savings and harvests
RedeemQueue.solThe first-come, first-served exit queue
VeSleeve.solThe weekly veBTC ladder
ProfitLock.solThe 7-day linear profit release
SystemMath.solMezo system ratio math, linked to keep the vault under the size limit

Mezo contracts used

Mezo contractUsed for
BorrowerOperationsOpen, adjust, refinance, close and claim collateral
TroveManagerDebt, collateral, status, rate and Recovery Mode reads
PriceFeedThe BTC price for share pricing and swap limits
HintHelpers, SortedTrovesInsert hints, so large moves never walk the whole trove list
MUSD Savings Vault (sMUSD)Deposit, withdraw, claim yield, value from the yield index
Mezo DEX RouterHarvests and fee buy-backs in the MUSD/BTC pool
veBTCCreate, grow and withdraw locks
Pools VoterVote, poke and reset
sMUSD gauge rewardsFee and bribe rewards in MUSD
RewardsDistributorThe weekly BTC rebate
ChainFeeSplitterupdatePeriod, run by the keeper when Mezo has not