Ballast Logo
BallastAUTONOMOUS TROVE GUARDIAN
Protocol Whitepaper v1.0Mezo Matsnet (Chain ID 31611)Production Verified

Ballast: Autonomous Liquidation & Redemption Defense Engine

A non-custodial, deterministic reserve architecture on Mezo Network designed to protect Bitcoin-backed MUSD troves through automated waterline defense and permissionless keeper interventions.

Author: Ballast Core Protocol Team
•
Network: Mezo Matsnet
•
Target Asset: MUSD / Bitcoin (tBTC)
•
GitHub Repository
01/Foundations

1. Abstract & Protocol Thesis

Abstract: Decentralized debt protocols backed by volatile collateral (such as Bitcoin on Mezo Network) subject borrowers to catastrophic tail-risk. Sudden market drawdowns trigger immediate 110% liquidations, while gradual contractions in secondary stablecoin demand expose the lowest-ICR troves to redemption arbitrage. Borrowers cannot remain awake 24/7 to manually defend their collateral. Ballast resolves this dilemma by introducing an autonomous, non-custodial defense engine. Borrowers establish a personal EIP-1167 proxy vault holding a pre-funded reserve. When on-chain Individual Collateral Ratio (ICR) breaches a customized safety waterline, any permissionless keeper can atomically execute a debt paydown or collateral injection to re-establish safe solvency, earning an incentivized tip without possessing custody of user funds.

Mezo Network establishes an EVM-compatible Bitcoin economic layer. At its foundation lies MUSD, a decentralized stablecoin minted against native Bitcoin collateral via Liquity-derived Trove contracts. While this system offers unprecedented capital efficiency, the structural realities of Bitcoin volatility demand automated protective infrastructure.

02/System Mechanics

2. Mezo MUSD Trove Dynamics & The Borrower Dilemma

Each borrower on Mezo interacts with the core protocol by maintaining a Trove—a collateralized debt position holding BTC and issuing MUSD debt. Trove solvency is governed by the Individual Collateral Ratio (ICR):

ICR = (Collateral_BTC × OraclePrice_USD) / Debt_MUSD × 100%
Mode 1: Normal Mode Liquidation (110% MCR)

If ICR falls below the Minimum Collateral Ratio of 110%, any third party can liquidate the trove. The borrower's collateral is seized by the Stability Pool, resulting in a complete loss of the 10% collateral premium plus a liquidation penalty fee.

Mode 2: Recovery Mode (150% CCR)

If Total Collateral Ratio (TCR) across all system troves falls below 150%, the protocol enters Recovery Mode. In this state, any trove with an ICR under 150% is eligible for immediate liquidation, drastically expanding the hazard zone.

The Hidden Threat: SortedTroves Redemption Cascades

Unlike typical lending protocols that only liquidate at MCR, Mezo allows anyone to redeem 1 MUSD for exactly $1 worth of Bitcoin collateral at face value. Redemptions do not pick troves randomly: they walk the on-chain doubly linked list (SortedTroves.sol) starting strictly from the lowest ICR trove. A borrower sitting at 120% ICR may be completely safe from liquidation, yet have their precious Bitcoin redeemed away bit-by-bit during a stablecoin peg deviation.

03/Architecture

3. System Architecture & Vault Topology

Ballast decomposes protective operations into deterministic, un-ruggable components:

1BallastFactory (Deterministic Proxy Deployer)

The factory utilizes EIP-1167 minimal proxy cloning to deploy lightweight, low-gas instances of BallastVault for each borrower. Each proxy holds an immutable reference to the master implementation while maintaining isolated state, user ownership, and custom rule configurations.

2BallastVault (Borrower-Owned Execution Cell)

Holds the borrower's pre-funded reserve (MUSD or BTC). Only the borrower (the vault owner) can withdraw funds or alter defense parameters. The contract exposes an open external function executeDefense(address borrower) which is gated by an on-chain ICR sanity check.

3Autonomous Keepers & Convex Bot Service

Off-chain keeper nodes continuously index the Mezo SortedTroves contract. When a registered vault's trove ICR drops beneath its preconfigured trigger (e.g., 130%), keepers submit a defense transaction. Simultaneously, our Convex cloud service dispatches immediate push notifications via the Telegram bot webhook (@BallastGuardBot).

Atomic Defense Execution Pipeline
Step 1
Oracle Price Drop
ICR < Target Trigger
Step 2
Keeper Detection
Computes Hint Traversal
Step 3
Atomic Paydown
Calls BorrowerOperations
Step 4
Solvency Restored
ICR > Safe Waterline
04/Quantitative Mechanics

4. Mathematical Formalization & Waterline Calculations

Ballast's defense calculations are deterministic and verified against integer rounding in 18-decimal precision (1e18).

Equation 1: Required Debt Repayment (ΔD)

To elevate a degraded ICR (ICR_current) to a safe target waterline (τ_target), the exact amount of debt ΔD that the vault must repay is given by:

ΔD = (D × τ_target - C × P) / τ_target

Where: D = Current Trove Debt, C = Collateral in BTC, P = Current Oracle Price (USD/BTC), τ_target = Desired Target Ratio (e.g., 1.40 for 140%).

Equation 2: Maximum Price Drop Tolerance (Waterline Buffer)

The percentage decline in Bitcoin price that a trove can absorb before breaching liquidation ($MCR = 1.10$) is defined as:

Price_Drop_Tolerance = 1 - (MCR / ICR_current)

Example: At 140% ICR, a borrower can withstand a 21.4% price shock before liquidation occurs.

05/Security Assurance

5. Security Guarantees & Formal Invariant Proofs

Every line of smart contract code adhering to the Ballast standard complies with strict solidity invariants verified through Foundry fork testing:

Invariant 1: Non-Custodial Isolation

A keeper executing defense never receives custody of user reserves. The vault code is mathematically constrained to route MUSD or BTC exclusively to Mezo'sBorrowerOperations contract for the borrower's trove address.

Invariant 2: Reentrancy & Ordering

All state transitions enforce the Checks-Effects-Interactions (CEI) paradigm and use OpenZeppelin's battle-tested ReentrancyGuard. Keeper execution is strictly blocked if the trove ICR is already above the trigger threshold.

Invariant 3: Bounded Keeper Tip

To prevent economic drain attacks, the keeper compensation fee is capped on-chain at an absolute maximum threshold configured by the borrower during vault initialization.

Invariant 4: Ground Truth Protocol Interfaces

Zero mocks in production. All contract ABIs and interfaces map 1:1 to Mezo's official mUSD protocol contracts deployed on Matsnet (Chain ID 31611).

06/On-Chain Matrix

6. Verified Contract Matrix (Mezo Matsnet)

The table below details all contracts involved in the Ballast defense engine. Official Mezo contracts are verified on-chain and badged accordingly:

Contract NameRole & FunctionStatus / BadgeMatsnet Address
BallastFactoryDeterministic Proxy FactoryBallast Core
0x8d5b…cd33
BallastVault ImplementationMaster Defense Execution LogicBallast Core
0x8158…a4bc
TroveManagerLiquidations, Redemptions, ICR QueryOfficial Mezo
0xE47c…6bb0Mezo
BorrowerOperationsCollateral Top-up & Debt RepaymentOfficial Mezo
0xCdF7…beE5Mezo
SortedTrovesDoubly Linked List of SolvencyOfficial Mezo
0x722E…68fAMezo
MUSD TokenBitcoin-backed StablecoinOfficial Mezo
0x1189…c503Mezo
ActivePoolGlobal Collateral & Debt CustodianOfficial Mezo
0x143A…FF51Mezo
07/Incentive Design

7. Permissionless Keeper Economics

A defense protocol is only as reliable as its execution engine. Ballast implements a game-theoretically sound keeper ecosystem:

01. Open Execution

Any entity running the Ballast open-source keeper client can submit execution transactions. No whitelisting, staking, or permission is required.

02. Predictable Bounties

The borrower sets a fixed keeper tip (e.g. 10–25 MUSD) that is paid out atomically upon successful intervention, covering gas overhead with a guaranteed profit margin.

03. Exact Hint Insertion

Keepers compute off-chain hints for insertion into Mezo's SortedTroves linked list, reducing on-chain gas costs to $O(1)$ complexity.

08/Conclusion

8. Conclusion & Future Roadmap

By uncoupling the borrower's physical presence from the survival of their Bitcoin trove, Ballast transforms DeFi borrowing on Mezo Network from a high-stress, sleepless endeavor into an institutional-grade, set-and-forget financial primitive.

Ready to protect your Mezo Bitcoin trove?

Deploy your personal non-custodial defense vault in less than 30 seconds.

Ballast LogoBallast/Liquidation protection for MUSD on Mezo

Ballast defends your Bitcoin-backed MUSD loan on Mezo with an automated, non-custodial reserve that anyone can deploy when your collateral ratio drops.

Non-custodial, minimal proxy architecture. Zero admin keys.
Verified Deployed Contracts (Mezo Matsnet Testnet 31611)
Official Mezo ProtocolBallast Guardian System
BallastFactoryBallast Core
Deterministic Proxy Factory
0x8d5b…cd33
BallastVault (Active Vault)Ballast Core
Primary Active Defense Vault
0xA506…5D5A
BallastVault ImplBallast Core
Keeper Defense Logic Master
0x8158…a4bc
BorrowerOperationsOfficial Mezo
Trove Engine & Adjustments
0xCdF7…beE5
TroveManagerOfficial Mezo
Accounting & Liquidations
0xE47c…6bb0
PriceFeedOfficial Mezo
BTC/USD Oracle Anchor
0x86bC…9366
MUSD TokenOfficial Mezo
Canonical Stablecoin ERC-20
0x1189…c503
© 2026 Ballast Protocol•MIT License•solc 0.8.24 london
Mezo Matsnet Testnet (31611)