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
pub use pallet::*;
Modules
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.
Structs
- Container for borrow balance information
- The curve interest rate model
- Container for earned amount information
- The jump interest rate model
- Market.
Enums
- Parallel interest rate model
- The current state of a market. For more information, see Market.
- Utility type for managing upgrades/migrations.
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.