Pool Params

Below is the list of configurable pool parameters, divided into categories.

// ---- GENERAL

        
// The liquidity pool
liquidity_pools: HashMap<ResourceAddress, Vault>,

// Loan-to-Value - how much of the user deposit is accounted as his collateral 
ltv_ratios: HashMap<ResourceAddress, Decimal>,
// How much is going to the protocol reserve
reserve_factors: HashMap<ResourceAddress, Decimal>,

// User state
users: HashMap<ResourceAddress, user::User>,
// Loan balances
borrow_balances: HashMap<ResourceAddress, Decimal>,
// Deposit balances
deposit_balances: HashMap<ResourceAddress, Decimal>,
// Reserve balances
reserve_balance: HashMap<ResourceAddress, Decimal>,

// Pool deposit interest rate
deposit_rates: HashMap<ResourceAddress, Decimal>,
// Pool borrow interest rate
borrow_rates: HashMap<ResourceAddress, Decimal>,


// ---- APY

bases: HashMap<ResourceAddress, Decimal>,
base_multipliers: HashMap<ResourceAddress, Decimal>,
multipliers: HashMap<ResourceAddress, Decimal>,
kinks: HashMap<ResourceAddress, Decimal>,


// ---- LIQUIDATIONS

// Max Percent of the user debt that could be liquidated
max_liquidation_percents: HashMap<ResourceAddress, Decimal>,
// Liquidation bonus for the user
liquidation_bonuses: HashMap<ResourceAddress, Decimal>,
// Liquidation bonus for the protocol
liquidation_reserve_factors: HashMap<ResourceAddress, Decimal>,
// Minimum reasonable value to be liquidated
min_liquidable_values: HashMap<ResourceAddress, Decimal>,



// ---- RISK

// Max Percent of the pool amount that can not be utilized // weft limit
pool_reserves: HashMap<ResourceAddress, Decimal>,

// Max Percent of the pool amount that a single account can borrow
max_borrow_percents: HashMap<ResourceAddress, Decimal>,

// The minimum collateral ratio = 1
min_collateral_ratios: HashMap<ResourceAddress, Decimal>,

// Deposit lock state (true if locked)
deposits_locked: HashMap<ResourceAddress, bool>,
// Borrow lock state (true if locked)
borrows_locked: HashMap<ResourceAddress, bool>,
// Withdraw lock state (true if locked)
withdraws_locked: HashMap<ResourceAddress, bool>,
// Repay lock state (true if locked)
repays_locked: HashMap<ResourceAddress, bool>,

Last updated