A fixed sum, paid by contract, if your position is liquidated.
The borrower holds a lending-market position through a cover account that, for the term, refuses borrowing, and withdrawals while in debt. An underwriter locks the cover in full; a recorded liquidation pays it.
Built for Morpho Blue, a lending market that uses a price oracle. On the testnet the cover account runs against a stand-in for the market (a mock), not Morpho Blue itself. No affiliation.
The life of a cover
createOfferUnderwriter→CoverOrchestratorreserveCoverOrchestrator→Vault- opens the offerCoverOrchestrator→PostedOffer
Calls from the specifications, as deployed on the testnet; not audited. Calls open to anyone are drawn on the party most likely to make them. The health ceiling is checked at arming and again at the fill.
Morpho Blue is drawn dashed: a venue outside Gavel, read only, named with no affiliation. On the testnet the adapter runs against a stand-in for it.
What each side ends up with
If the position is liquidated.
Borrower is paid the cover, a fixed sum, whatever the liquidation took; the premium was its cost.
Underwriter pays the cover, from its own funds or its locked margin, and keeps the premium.
If it is not liquidated.
Borrower keeps its position, unfrozen once the cover lapses; the premium was the cost of the cover.
Underwriter keeps the premium, and its margin is released.
A worked example
Illustrative, not a quoteOne borrower, one underwriter, one market: what each party does, which call it is, and where the money goes. The figures are arithmetic on the assumptions below.
Market. WBTC/USDC on Morpho Blue, liquidation threshold 86%. Its liquidation penalty: 1 / (0.3 × 0.86 + 0.7) − 1 ≈ 4.38%.
Position. 1 BTC of collateral at $150,000; $100,000 borrowed. Liquidatable below $100,000 / 0.86 ≈ $116,279, a little higher as interest accrues.
Cover. $4,380 for three months, the cap: debt × penalty. Premium $500, an assumed figure: each underwriter sets its own rate.
The offer's timing. Pay delay one day, grace one day, shown before purchase.
| What happens | The call | Who may call | Where the money goes | |
|---|---|---|---|---|
| 1 | The underwriter posts an offer: capacity, premium rate, term, pay delay and grace. | CoverOrchestrator.createOffer | The underwriter | Capacity reserved in the underwriter's vault account |
| 2 | The borrower opens a cover account and holds the Morpho Blue position through it. | openAccount, supplyCollateral, borrow | The borrower | 1 BTC in; $100,000 out to the borrower |
| 3 | The borrower arms the account: from now only repaying and adding collateral are allowed. | arm | The borrower | None. Refused above the health ceiling |
| 4 | The borrower buys $4,380 of cover; the cap and the ceiling are checked, and the policy is written. | CoverOrchestrator.insureVia | The borrower | $500 premium to the underwriter at once; $4,380 locked under a lien |
| 5 | BTC falls to $115,000. A liquidator repays the $100,000 debt and takes $104,380 of BTC (0.9077 BTC). | The venue's own liquidation | Any liquidator | The borrower keeps 0.0923 BTC ($10,620) and no debt: $4,380 lost to the penalty |
| 6 | The account records that its collateral fell, reading the venue's record of the position. | record | Anyone | None |
| 7 | The policy fires and is resolved; $4,380 falls due one pay delay later. | Obligation.fire, Obligation.resolve | Anyone | None yet |
| 8a | The underwriter pays by the due date, and the holder redeems the cover's units. | Obligation.pay, then Obligation.redeem | The underwriter; the holder | $4,380 to the holder |
| 8b | Or, unpaid after the due date plus grace: the cover is marked breached, the lien takes the margin, and the holder redeems. | Obligation.markBreached, Lien.enforce, then Obligation.redeem | Anyone; the holder redeems | $4,380 from the locked margin to the holder |
- 1
The underwriter posts an offer: capacity, premium rate, term, pay delay and grace.
- The call
CoverOrchestrator.createOffer- Who may call
- The underwriter
- Where the money goes
- Capacity reserved in its vault account
- 2
The borrower opens a cover account and holds the position through it.
- The call
openAccount,supplyCollateral,borrow- Who may call
- The borrower
- Where the money goes
- 1 BTC in; $100,000 out to the borrower
- 3
The borrower arms the account: only repaying and adding collateral are allowed.
- The call
arm- Who may call
- The borrower
- Where the money goes
- None. Refused above the health ceiling
- 4
The borrower buys $4,380 of cover; the cap and the ceiling are checked.
- The call
CoverOrchestrator.insureVia- Who may call
- The borrower
- Where the money goes
- $500 to the underwriter; $4,380 locked under a lien
- 5
BTC falls to $115,000. A liquidator repays the $100,000 and takes $104,380 of BTC.
- The call
- The venue's own liquidation
- Who may call
- Any liquidator
- Where the money goes
- The borrower keeps 0.0923 BTC ($10,620): $4,380 lost to the penalty
- 6
The account records that its collateral fell.
- The call
record- Who may call
- Anyone
- Where the money goes
- None
- 7
The policy fires and is resolved; $4,380 falls due one pay delay later.
- The call
Obligation.fire,Obligation.resolve- Who may call
- Anyone
- Where the money goes
- None yet
- 8a
The underwriter pays by the due date; the holder redeems the cover's units.
- The call
Obligation.pay, thenObligation.redeem- Who may call
- The underwriter; the holder
- Where the money goes
- $4,380 to the holder
- 8b
Or, unpaid after the due date plus grace: marked breached, the lien takes the margin, the holder redeems.
- The call
Obligation.markBreached,Lien.enforce, thenObligation.redeem- Who may call
- Anyone; the holder redeems
- Where the money goes
- $4,380 from the margin to the holder
| No cover | With cover | |
|---|---|---|
| Left after liquidation | $10,620 | $15,000 |
| After the $500 premiumAfter the premium | $10,620 | $14,500 |
The cover returns the penalty. It does not keep the position open: the bitcoin is sold at $115,000 either way.
Other outcomes
No liquidation in the term. The policy lapses (Obligation.lapse); the margin is released (Lien.release, then Lien.claim). The underwriter keeps the $500.
Partial liquidation. The full $4,380 is paid: the account records any fall in its collateral, and the sum is fixed at purchase.
A sharp fall below about $104,400 before anyone liquidates: the borrower's remaining equity, less than $4,380, is lost; the cover still pays $4,380.
How it is composed
v2 · on the testnet (Arbitrum Sepolia) · not audited
- CoverOrchestratorthe underwriter's offers, the premium, the margin under lien, the cover set
- PostedOfferthe standing offer; one take per policy
- MorphoCoverAdapterwith its CoverAccount clones: the cover accounts and their freeze; records a fall; answers the cover's trigger. No block of its own
- Obligationthe cover: the underwriter's contingent obligation, its sum fixed at purchase
- Liensecures the cover on the margin
- Vaultholds the capacity, the premium in passing, and the margin
- Morpho Bluethe venue, read only; on the testnet a stand-in market (MockMorpho, MockOracle, MockIrm)
One cover per arming of an account. The cover's units go to the borrower and can be transferred; the holder is paid.
What it stands on
- Alongside.Morpho Blue, where a position is liquidated when its health factor, from the market's oracle price, falls below one. No affiliation.
Before you use it
Any fall counts. The account records any fall in its collateral that it did not make itself as the event.
A fixed sum, not the loss. The cover pays the sum bought, at most the penalty on the debt at purchase, whatever the liquidation took.
The account is frozen. For the term, borrowing is refused, and withdrawing collateral is refused while debt remains; repaying and adding collateral stay open.
Not audited. The v2 contracts are on the testnet and unaudited.
Nothing on this page is an offer to provide this cover or a recommendation to use it. The v2 contracts are unaudited.
Go deeper: the cover market · the blocks · the argument