Docs
Sealed lending, in plain words.
What is sealed, what is public
- Sealed: each position’s debt, health factor and liquidation price. The chain stores a commitment (keccak of the debt and a random salt) and the state encrypted to you and to the risk engine.
- Public: pool totals (cash, total debt, total collateral), the collateral each position holds, and every token transfer, because tokens move on chain.
- Borrow requests are encrypted too, and the risk engine can split and batch payouts, so the size of a loan is not announced when you ask for it.
Who checks what
The sealer, an attested risk engine, reads sealed positions, settles borrows, releases collateral and closes unhealthy positions. The contract does not have to trust it with the pool: it checks in the open, on every borrow and release, that total debt stays under total collateral × ETH price × 70%.
Liquidations
When a position’s debt passes 80% of its collateral’s value, the sealer closes it without a public countdown. Its ETH goes to a sale at a fixed 5% discount that anyone can buy with buySeized; the USDG goes back to lenders.
Interest
Borrowers pay 8% a year, accrued every second on total debt. 10% of interest is kept as reserves for the treasury (and $VEIL); the rest raises the value of lenders’ shares.
VeilendPool contract
- lenders:
supply(amount)·redeem(shares)· readstotalAssets(),sharesOf(address) - borrowers:
open(commitment, sealedState)payable ETH ·addCollateral(id)·requestBorrow(id, sealedRequest)·repay(id, amount) - sealer:
settleBorrow·reseal·release·liquidate·setPrice; anyone:buySeized(amountWei),accrue(),claimReserves() - Setup: deploy with no arguments, then
init(treasury, feeBps). Init sets 70% max LTV, 8% rate, 5% discount, a starting ETH price, and makes the deployer the sealer.