Skip to content

Lending

Preview

Deposit assets, enable collateral, borrow, repay, withdraw, query health, and liquidate positions.

Updated View as Markdown

The lending module tracks pools, deposits, collateral flags, borrow positions, interest, health factors, and liquidation paths.

User lifecycle

  1. Deposit an asset into a lending pool.
  2. Enable the asset as collateral where governance permits.
  3. Borrow another supported asset within the health boundary.
  4. Repay debt and accrued interest.
  5. Withdraw available collateral.
  6. Liquidate a position only when the module reports it as liquidatable.

Integration rules

  • Query pool parameters and current health before every risk-changing action.
  • Use the module’s integer amount and interest calculations; do not reproduce them with floating-point math.
  • Keep collateral, borrowed denom, oracle price, and account address bound to the signed message.
  • Surface liquidation and pause states to users instead of hiding them behind a generic “borrow” button.

Lending can feed stablecoin yield or UTA risk workflows, but a product should connect those modules only through their public typed boundaries.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close