pub struct Pool {
pub chain: SharedChain,
pub dex: Dex,
pub address: String,
pub creation_block: u64,
pub token0: Token,
pub token1: Token,
pub fee: u32,
pub tick_spacing: u32,
}Expand description
Represents a liquidity pool in a decentralized exchange.
Fields§
§chain: SharedChainThe blockchain network where this pool exists.
dex: DexThe decentralized exchange protocol that created and manages this pool.
address: StringThe blockchain address of the pool smart contract.
creation_block: u64The block number when this pool was created on the blockchain.
token0: TokenThe first token in the trading pair.
token1: TokenThe second token in the trading pair.
fee: u32The trading fee charged by the pool, denominated in basis points.
tick_spacing: u32The minimum tick spacing for positions in concentrated liquidity AMMs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnwindSafe for Pool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more