pub struct Redeem {
pub stable_amount: u64,
pub start_stable_supply: u64,
pub spl_amount: u64,
pub mint: Pubkey,
pub spl_price: i64,
pub strategy_idx: u8,
}Fields§
§stable_amount: u64Amount of Stable consumed.
start_stable_supply: u64Total stable in circulation at start.
spl_amount: u64Amount of SPL unlocked.
mint: PubkeyMint of the SPL.
spl_price: i64Price of the SPL.
strategy_idx: u8Index of the stratgey.
Trait Implementations§
Source§impl BorshDeserialize for Redeem
impl BorshDeserialize for Redeem
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Redeem
impl BorshSerialize for Redeem
impl Eq for Redeem
impl StructuralPartialEq for Redeem
Auto Trait Implementations§
impl Freeze for Redeem
impl RefUnwindSafe for Redeem
impl Send for Redeem
impl Sync for Redeem
impl Unpin for Redeem
impl UnsafeUnpin for Redeem
impl UnwindSafe for Redeem
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