pub trait PoolFeesInspect {
    type PoolId;

    // Required methods
    fn get_max_fee_count() -> u32;
    fn get_max_fees_per_bucket() -> u32;
    fn get_pool_fee_count(pool: Self::PoolId) -> u32;
    fn get_pool_fee_bucket_count(
        pool: Self::PoolId,
        bucket: PoolFeeBucket
    ) -> u32;
}
Expand description

Trait to get pool fees counts

Required Associated Types§

Required Methods§

source

fn get_max_fee_count() -> u32

Returns the maximum number of pool fees required for accurate weights

source

fn get_max_fees_per_bucket() -> u32

Returns the maximum number of pool fees per bucket required for accurate weights

source

fn get_pool_fee_count(pool: Self::PoolId) -> u32

Returns the current amount of active fees for the given pool

source

fn get_pool_fee_bucket_count(pool: Self::PoolId, bucket: PoolFeeBucket) -> u32

Returns the current amount of active fees for the given pool and bucket pair

Object Safety§

This trait is not object safe.

Implementors§