pub struct Main {
pub discriminator: [u8; 8],
pub bump: u8,
pub access_control: AccessControl,
pub lsts_main: Vec<SplMain>,
pub externals: Externals,
pub strategy_counter: u8,
}Fields§
§discriminator: [u8; 8]§bump: u8For rederivation.
access_control: AccessControlPermissions and frozen state.
lsts_main: Vec<SplMain>Master list of all supported SPL that are inputs to the delta-neutral strategies. SPLs that users can use to mint stables (or autocompounds). Stored are:
- mint address
- oracle address (for our use, set to NULL for now)
- fee (unsued)
- precision
- supported DEX indices
externals: ExternalsList of all external programs needed to implement strategies.
strategy_counter: u8Latest PDA derivation seed component for supported dexes.
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Main
impl BorshDeserialize for Main
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 Main
impl BorshSerialize for Main
impl Eq for Main
impl StructuralPartialEq for Main
Auto Trait Implementations§
impl Freeze for Main
impl RefUnwindSafe for Main
impl Send for Main
impl Sync for Main
impl Unpin for Main
impl UnsafeUnpin for Main
impl UnwindSafe for Main
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