pub trait TrancheCurrency<PoolId, TrancheId> {
    // Required methods
    fn generate(pool_id: PoolId, tranche_id: TrancheId) -> Self;
    fn of_pool(&self) -> PoolId;
    fn of_tranche(&self) -> TrancheId;
}
Expand description

A trait for converting from a PoolId and a TranchId into a given Self::Currency

Required Methods§

source

fn generate(pool_id: PoolId, tranche_id: TrancheId) -> Self

source

fn of_pool(&self) -> PoolId

source

fn of_tranche(&self) -> TrancheId

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<PoolId: Clone, TrancheId: Clone> TrancheCurrency<PoolId, TrancheId> for (PoolId, TrancheId)

source§

fn generate(pool_id: PoolId, tranche_id: TrancheId) -> Self

source§

fn of_pool(&self) -> PoolId

source§

fn of_tranche(&self) -> TrancheId

Implementors§