Trait pool_sync::PoolInfo

source ·
pub trait PoolInfo {
    // Required methods
    fn address(&self) -> Address;
    fn token0_address(&self) -> Address;
    fn token1_address(&self) -> Address;
    fn token0_name(&self) -> String;
    fn token1_name(&self) -> String;
    fn token0_decimals(&self) -> u8;
    fn token1_decimals(&self) -> u8;
    fn pool_type(&self) -> PoolType;
    fn reserves(&self) -> (U128, U128);
}
Expand description

Defines common methods that are used to access information about the pools

Required Methods§

Implementors§