Lending

This page covers Deposit, Withdraw, Interest Accrual and Liquidations from Strategy.

Strategies are isolated ERC-4626 lending markets that define:

  • Loan & collateral assets

  • LTV parameters

  • Interest models

  • Liquidation parameters

  • Curve slices (ticks)

  • Debt and collateral accounting

Borrowing never happens here directly—only through the orderbook. Repayment and collateral operations always happen inside strategies.


1. ERC-4626 Lending

Deposit

strategy.deposit(amount, receiver);

Withdraw

strategy.withdraw(amount, receiver, owner);

Redeem Shares

Deposits increase strategy liquidity → which alters tick quotes → which updates the orderbook.


2. Tick Engine (Strategy → Orderbook)

Every strategy defines a curve that is sliced into 1–10 ticks.

A tick contains:

After deposits/withdrawals, the strategy:

  1. Recomputes ticks

  2. Pushes updated ticks to the orderbook

This is how the orderbook knows the global credit landscape at all times.


3. Interest Accrual

Strategies use an index-based model:

BorrowIndex grows based on:

  • utilization

  • interest rate model (IRM)

  • time elapsed

Accrual happens on interaction or via explicit update calls.


4. Liquidations

A position becomes liquidatable when:

Where:


4.1 Soft Range

When slightly underwater:

  • Flat liquidation bonus (3–10%)

  • Collateral seized is capped (10–50%)


4.2 Hard Range

When deeply underwater:

  • Bonus increases quadratically up to full liquidation

  • Collateral seize cap disabled


4.3 Liquidation Call

Liquidator receives:

Strategies enforce all liquidation math internally.


5. Reading Strategy State

Developers can read:

Each strategy must be queried individually — no shared accounting exists.


This completes the strategy model. Next page covers borrowing using order books.

Last updated