The Lending module unlocks liquidity by letting investors pledge fractional tokens as collateral. Borrowers can draw $REAL or stablecoins up to an LTV threshold.
Provide liquidity without asset sales.
Secure borrowing with collateral.
Liquidate unhealthy positions.
Collateral deposits.
Borrow stablecoins or $REAL.
LTV enforcement.
Liquidation mechanism.
Compliance hooks.
RealLending.sol – manages collateral, loans, liquidation.
Borrower – deposits, borrows, repays.
Liquidator – liquidates unsafe positions.
Admin – configures LTV and params.
contracts/lending/RealLending.sol
Borrower deposits 100 fractions as collateral.
Borrower borrows 1000 USDC.
Collateral price falls → health < threshold.
Liquidator repays debt and seizes collateral.
Last updated 4 months ago