Lending Pool Manage
fn set_price_feed_provider(
&mut self,
price_feed_provider: AccountId,
) -> Result<(), LendingPoolError>;
fn set_flash_loan_fee_e6(
&mut self,
flash_loan_fee_e6: u128,
) -> Result<(), LendingPoolError>;
fn register_asset(
&mut self,
asset: AccountId,
a_token_code_hash: [u8; 32],
v_token_code_hash: [u8; 32],
name: String,
symbol: String,
decimals: u8,
asset_rules: AssetRules,
reserve_restrictions: ReserveRestrictions,
fees: ReserveFees,
interest_rate_model: Option<InterestRateModel>,
) -> Result<(), LendingPoolError>;
fn set_reserve_is_active(
&mut self,
asset: AccountId,
active: bool,
) -> Result<(), LendingPoolError>;
fn set_reserve_is_freezed(
&mut self,
asset: AccountId,
freeze: bool,
) -> Result<(), LendingPoolError>;
fn set_interest_rate_model(
&mut self,
asset: AccountId,
interest_rate_model: InterestRateModel,
) -> Result<(), LendingPoolError>;
fn set_reserve_fees(
&mut self,
asset: AccountId,
reserve_fees: ReserveFees,
) -> Result<(), LendingPoolError>;
fn set_reserve_restrictions(
&mut self,
asset: AccountId,
reserve_restrictions: ReserveRestrictions,
) -> Result<(), LendingPoolError>;
fn set_stablecoin_debt_rate_e18(
&mut self,
asset: AccountId,
debt_rate_e18: u64,
) -> Result<(), LendingPoolError>;
fn add_market_rule(
&mut self,
market_rule: MarketRule,
) -> Result<(), LendingPoolError>;
fn modify_asset_rule(
&mut self,
market_rule_id: RuleId,
asset: AccountId,
asset_rules: AssetRules,
) -> Result<(), LendingPoolError>;
fn take_protocol_income(
&mut self,
assets: Option<Vec<AccountId>>,
to: AccountId,
) -> Result<Vec<(AccountId, i128)>, LendingPoolError>;
Last updated