Lending Pool View

fn view_flash_loan_fee_e6(&self) -> u128;
fn view_asset_id(&self, asset: AccountId) -> Option<RuleId>;
fn view_registered_assets(&self) -> Vec<AccountId>;
fn view_reserve_data(&self, asset: AccountId) -> Option<ReserveData>;
fn view_unupdated_reserve_indexes(
     &self,
     asset: AccountId
) -> Option<ReserveIndexes>;
fn view_reserve_indexes(&self, asset: AccountId) -> Option<ReserveIndexes>;
fn view_reserve_fees(&self, asset: AccountId) -> Option<ReserveFees>;
fn view_interest_rate_model(
    &self,
    asset: AccountId
) -> Option<InterestRateModel>;
fn view_reserve_restrictions(
    &self,
    asset: AccountId
) -> Option<ReserveRestrictions>;
fn view_reserve_tokens(
    &self, 
    asset: AccountId
) -> Option<ReserveAbacusTokens>;
fn view_reserve_decimal_multiplier(
    &self,
    asset: AccountId
) -> Option<DecimalMultiplier>;
fn view_unupdated_user_reserve_data(
    &self,
    asset: AccountId,
    account: AccountId
) -> UserReserveData;
fn view_user_reserve_data(
    &self,
    asset: AccountId,
    account: AccountId
) -> UserReserveData;
fn view_user_config(&self, user: AccountId) -> UserConfig;
fn view_market_rule(&self, market_rule_id: RuleId) -> Option<MarketRule>;
fn get_user_free_collateral_coefficient(
    &self, 
    user_address: AccountId
) -> (bool, u128);
fn view_protocol_income(
    &self,
    assets: Option<Vec<AccountId>>
) -> Vec<(AccountId, i128)>;

Last updated