pub trait LoansApi<Block: BlockT, AccountId, Balance>: Core<Block>where
    AccountId: Codec,
    Balance: Codec,{
    // Provided methods
    fn get_account_liquidity(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account: AccountId
    ) -> Result<Result<(Liquidity, Shortfall), DispatchError>, ApiError> { ... }
    fn get_market_status(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        asset_id: CurrencyId
    ) -> Result<Result<(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128), DispatchError>, ApiError> { ... }
    fn get_liquidation_threshold_liquidity(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account: AccountId
    ) -> Result<Result<(Liquidity, Shortfall), DispatchError>, ApiError> { ... }
}

Provided Methods§

source

fn get_account_liquidity( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: AccountId ) -> Result<Result<(Liquidity, Shortfall), DispatchError>, ApiError>

source

fn get_market_status( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, asset_id: CurrencyId ) -> Result<Result<(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128), DispatchError>, ApiError>

source

fn get_liquidation_threshold_liquidity( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: AccountId ) -> Result<Result<(Liquidity, Shortfall), DispatchError>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, AccountId, Balance> RuntimeApiInfo for dyn LoansApi<Block, AccountId, Balance>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§