pub struct SplMain {
pub main_spl_index: u8,
pub mint: Pubkey,
pub oracle: Pubkey,
pub fee: u64,
pub precision: u8,
pub strategy_indices: Vec<u8>,
pub deposits_suspended: bool,
}Fields§
§main_spl_index: u8Entry number of this LST. Sequential.
mint: Pubkey§oracle: PubkeyOracle we use for look-up, can be different than the one required by the DEX. TODO: Should be upgradeable
fee: u64In case of variable fees for some type of interacton.
precision: u8Base mint precision of the LST.
strategy_indices: Vec<u8>Array of strategy specific PDAs that support that particular SPL.
deposits_suspended: boolFrozen from minting using it at reflect level.
Trait Implementations§
Source§impl BorshDeserialize for SplMain
impl BorshDeserialize for SplMain
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 SplMain
impl BorshSerialize for SplMain
impl Eq for SplMain
impl StructuralPartialEq for SplMain
Auto Trait Implementations§
impl Freeze for SplMain
impl RefUnwindSafe for SplMain
impl Send for SplMain
impl Sync for SplMain
impl Unpin for SplMain
impl UnsafeUnpin for SplMain
impl UnwindSafe for SplMain
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