How On-Chain Lending Works
An on-chain loan can start with two transactions. The borrower deposits an asset as collateral, then borrows another asset against it. The loan stays open until the borrower repays it or the protocol’s liquidation rules take effect.
Start With Collateral
Imagine a borrower deposits $1,500 worth of a digital asset into a lending protocol and borrows $750 worth of a stablecoin. The collateral stays locked while the loan is open. The borrower can use the stablecoins elsewhere.
The protocol sets which assets it accepts and how much can be borrowed against each one. The gap between the collateral value and the loan gives the position some room to absorb a price drop.
Calculate the Loan-to-Value Ratio
The loan-to-value ratio, or LTV, divides the outstanding debt by the value of the collateral. A $750 loan against $1,500 in collateral starts at 50% LTV.
If the collateral falls to $1,000 while the debt stays at $750, the ratio rises to 75%. The borrower hasn’t taken out any more money. The price drop alone has brought the position closer to liquidation.
See Where the Loan Comes From
In a pool-based model, lenders supply assets to a shared pool and borrowers draw from that pool. The protocol keeps track of deposits, loans, and interest through its smart contracts.
Some protocols adjust borrowing rates as demand changes. In that design, the cost of a loan can rise as borrowers use up more of the available funds.
Understand What Triggers Liquidation
Suppose the fictional protocol allows liquidation when a position reaches 75% LTV. At that point, a liquidator may repay some of the debt in exchange for some of the collateral. The protocol determines how much can be repaid and how much collateral the liquidator receives.
The trigger depends on the price the protocol uses and the outstanding debt, including accrued interest. A position can move toward liquidation as collateral falls or as debt grows.
Close the Position
The borrower can repay the remaining loan, including accrued interest, and withdraw the collateral that remains. Some protocols also allow partial repayment or additional collateral while a loan is still open.
To understand a lending position at any point, look at its collateral value, outstanding debt, and liquidation threshold together. Those three figures show how much room the position has before the protocol can intervene.