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: SharedChain
The blockchain network where this pool exists.
dex: Dex
The decentralized exchange protocol that created and manages this pool.
address: String
The blockchain address of the pool smart contract.
creation_block: u64
The block number when this pool was created on the blockchain.
token0: Token
The first token in the trading pair.
token1: Token
The second token in the trading pair.
fee: u32
The trading fee charged by the pool, denominated in basis points.
tick_spacing: u32
The 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