pub struct NewReserveLiquidityParams {
pub mint_pubkey: Pubkey,
pub mint_decimals: u8,
pub supply_pubkey: Pubkey,
pub pyth_oracle_pubkey: Pubkey,
pub switchboard_oracle_pubkey: Pubkey,
pub market_price: Decimal,
}Expand description
Create a new reserve liquidity
Fields§
§mint_pubkey: PubkeyReserve liquidity mint address
mint_decimals: u8Reserve liquidity mint decimals
supply_pubkey: PubkeyReserve liquidity supply address
pyth_oracle_pubkey: PubkeyReserve liquidity pyth oracle account
switchboard_oracle_pubkey: PubkeyReserve liquidity switchboard oracle account
market_price: DecimalReserve liquidity market price in quote currency
Auto Trait Implementations§
impl Freeze for NewReserveLiquidityParams
impl RefUnwindSafe for NewReserveLiquidityParams
impl Send for NewReserveLiquidityParams
impl Sync for NewReserveLiquidityParams
impl Unpin for NewReserveLiquidityParams
impl UnwindSafe for NewReserveLiquidityParams
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more