Crate loans

source ·
Expand description

Loans pallet

Overview

The loans pallet implements a Compound V2-style lending protocol by using a pool-based strategy that aggregates each user’s supplied assets. The interest rate is dynamically determined by the supply and demand. Lending positions are tokenized and can thus have their ownership transferred.

Re-exports

Modules

  • The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

Structs

Enums

Constants

Traits

  • Hook to run before depositing into an account.
  • Hook to run before slashing an account.
  • Hook to run before transferring from an account to another.
  • Weight functions needed for loans.