pub struct PoolMarket<'a> {
pub base_vault_amount: u64,
pub quote_reserves: u64,
pub created_at: i64,
pub fees: &'a DexFees,
pub landing: Landing,
pub creator_fee_bps: u16,
}Expand description
Read quote_reserves, created_at and creator_fee_bps from the Pool
account, not from a vault.
Fields§
§base_vault_amount: u64The base vault’s token amount. The program prices from it, not from
pool.base_reserves.
quote_reserves: u64§created_at: i64§fees: &'a DexFeesPartnerConfig.dex of the trade’s partner on the pool’s platform. It
sets the protocol rate, the LP rate and the decay.
landing: Landing§creator_fee_bps: u16Pool.creator_fee_bps, not the partner’s max_creator_fee_bps.
Trait Implementations§
Source§impl<'a> Clone for PoolMarket<'a>
impl<'a> Clone for PoolMarket<'a>
impl<'a> Copy for PoolMarket<'a>
Auto Trait Implementations§
impl<'a> Freeze for PoolMarket<'a>
impl<'a> RefUnwindSafe for PoolMarket<'a>
impl<'a> Send for PoolMarket<'a>
impl<'a> Sync for PoolMarket<'a>
impl<'a> Unpin for PoolMarket<'a>
impl<'a> UnsafeUnpin for PoolMarket<'a>
impl<'a> UnwindSafe for PoolMarket<'a>
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