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> { ... }
}
The identifier of the runtime api.
The version of the runtime api.