Abax Documentation
  • 🧮Meet Abax!
    • Overview
    • Glossary
  • Lending
    • Collateral & Borrowing
    • Health Factor
    • Market Rules
    • Interest Rate Model
    • Liquidation
      • Liquidation Formula
    • Protocol Fee
  • Tokenomics
    • Abax Token
    • Public Contribution
    • Promotional Campaigns
  • How to Use Abax
    • How to Start Using Abax?
    • How Can I Make a Deposit?
    • How Do I Withdraw?
    • How Can I Borrow?
    • How Do I Repay Debt?
  • Governance
    • Governance System
  • Contracts
    • Lending Protocol
      • Lending Pool
        • Messages
          • Lending Pool Actions
          • Lending Pool Flash
          • Lending Pool Maintain
          • Lending Pool Manage
          • Lending Pool View
          • A Token Interface
          • V Token Interface
        • Storage
          • Types
          • Structs
        • Calculations
          • Interest Accumulation
          • Account Interest Accumulation
          • Rate Recalculation
          • Calculate Lending Power
        • Errors
    • Abax DAO
Powered by GitBook
On this page
  1. Contracts
  2. Lending Protocol
  3. Lending Pool
  4. Messages

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>;
PreviousLending Pool MaintainNextLending Pool View

Last updated 1 year ago