pub trait TrancheTokenPrice<AccountId, CurrencyId> {
    type PoolId;
    type TrancheId;
    type BalanceRatio;
    type Moment;

    // Required method
    fn get_price(
        pool_id: Self::PoolId,
        tranche_id: Self::TrancheId
    ) -> Option<(Self::BalanceRatio, Self::Moment)>;
}
Expand description

Get the latest price for a given tranche token

Required Associated Types§

Required Methods§

source

fn get_price( pool_id: Self::PoolId, tranche_id: Self::TrancheId ) -> Option<(Self::BalanceRatio, Self::Moment)>

Object Safety§

This trait is not object safe.

Implementors§