pub trait GetPoolReserves<AssetId> {
    // Required method
    fn reserves(
        base_asset: &AssetId,
        other_asset: &AssetId
    ) -> (Balance, Balance);
}
Expand description

Trait for bounding liquidity proxy associated type representing secondary market.

Required Methods§

source

fn reserves(base_asset: &AssetId, other_asset: &AssetId) -> (Balance, Balance)

Returns the amount of the (base_asset, other_asset) pair reserves in a liquidity pool or the default value if such pair doesn’t exist.

Implementations on Foreign Types§

source§

impl<AssetId> GetPoolReserves<AssetId> for ()

source§

fn reserves(_base_asset: &AssetId, _other_asset: &AssetId) -> (Balance, Balance)

Implementors§