MathFin
Map / Valuation · Static replication and model-free bounds / MathFin.Markets.DeFi.Dai

Dai (MakerDAO): liquidation inequality and stability-fee compounding

MathFin.Markets.DeFi.DaiMSC 91G80JEL G23 source

Adapted from the MakerDAO whitepaper (Maker, "The Maker Protocol: MakerDAO's Multi-Collateral Dai (MCD) System", 2020, <https://makerdao.com/en/whitepaper>): the collateralization / liquidation criterion from the "Liquidation of Risky Maker Vaults" section, and the "Liquidation Ratio" / "Stability Fee" parameter entries under "Risk Parameters Controlled by Maker Governance" (these are named parameter entries, not sub-sections of the paper).

Main definitions

  • isLiquidatable: the predicate collateral / debt < liquidationRatio on a vault.

Main results

  • isLiquidatable_iff_mul: cross-multiplied equivalent form (no division), for debt > 0.
  • debt_eq_debt_zero_mul_pow: the compounding recurrence debt (n+1) = debt n · (1 + fee) has closed form debt n = debt 0 · (1+fee)^n (the library's eq_mul_pow_of_succ, Models/Rates/PeriodicCompounding.lean).
  • debt_mul_zcb_log_eq: per-period stability-fee compounding is continuous compounding at the rate log (1 + fee): discounting the debt after n periods by the zero-coupon bond zcb (log (1 + fee)) 0 n returns the initial debt, for fee > −1. The Multi-Collateral Dai Jug compounds its per-second rate (duty) over the elapsed seconds, so a period here is a second and log (1 + fee) is the continuously compounded per-second rate.

The probability that a vault with lognormal collateral is liquidatable at a horizon is in MathFin/Markets/DeFi/LiquidationAsStructuralDefault.lean (prob_isLiquidatable_eq_kmvPD).

References

  • J. C. Hull, Options, Futures, and Other Derivatives [Hull], §4.2
  • MakerDAO, The Maker Protocol: MakerDAO's Multi-Collateral Dai (MCD) System [MakerDAO2020]
  • MakerDAO, MakerDAO technical documentation [MakerDAOTechDocs], Rates Module

Tags

MakerDAO, stablecoin, vault liquidation, collateralization ratio, stability fee, compounding, MSC 91G80, JEL G23

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-dai-stability-fee-continuous-rate · defi.json · full statement
Dai Stability-Fee Compounding Is Continuous Compounding

If a Dai vault's debt compounds at a per-period stability fee fee > -1, debt(n+1) = debt(n) * (1 + fee), then the debt after n periods discounted by the zero-coupon bond at the continuously compounded rate log(1 + fee), zcb(log(1 + fee), 0, n), equals the initial debt: per-period compounding at fee is continuous compounding at log(1 + fee), with time measured in periods.

Declarations 4

defMathFin.DeFi.Dai.isLiquidatablesource
ℝ → ℝ → ℝ → Prop

Dai liquidation predicate: a vault is liquidatable once its collateralization ratio collateral / debt falls below the protocol's liquidation ratio.

theoremMathFin.DeFi.Dai.isLiquidatable_iff_mulsource
∀ {collateral debt liquidationRatio : ℝ}, 0 < debt → (isLiquidatable collateral debt liquidationRatio ↔ collateral < liquidationRatio * debt)

Division-free equivalent of the liquidation predicate, valid when debt is positive: collateral / debt < LR ↔ collateral < LR · debt.

theoremMathFin.DeFi.Dai.debt_eq_debt_zero_mul_powsource
∀ (debt : ℕ → ℝ) (fee : ℝ), (∀ (n : ℕ), debt (n + 1) = debt n * (1 + fee)) → ∀ (n : ℕ), debt n = debt 0 * (1 + fee) ^ n

Dai stability-fee compounding: given a vault-debt sequence satisfying debt (n+1) = debt n · (1 + fee) at every step, the debt after n periods equals the initial debt compounded at the per-period stability fee, debt n = debt 0 · (1 + fee)^n: the closed form of a per-period accrual index, eq_mul_pow_of_succ.

theoremMathFin.DeFi.Dai.debt_mul_zcb_log_eqsource
∀ (debt : ℕ → ℝ) {fee : ℝ}, -1 < fee → (∀ (n : ℕ), debt (n + 1) = debt n * (1 + fee)) → ∀ (n : ℕ), debt n * zcb (Real.log (1 + fee)) 0 ↑n = debt 0

Stability-fee compounding is continuous compounding at the rate log (1 + fee). If the vault debt compounds at the per-period fee fee > −1, then discounting the debt after n periods by the zero-coupon bond at the continuously compounded rate log (1 + fee) (time in periods) returns the initial debt: debt n · zcb (log (1 + fee)) 0 n = debt 0.