Skip to main content

Module helpers

Module helpers 

Source
Expand description

High-level instruction builders that auto-derive PDAs and remaining accounts.

Each helper accepts a VaultInfo (and optionally a ReserveInfo) and returns a single solana_instruction::Instruction ready to include in a transaction.

For the low-level API where you supply every account manually, see instructions.

Re-exports§

pub use deposit::buy;
pub use deposit::deposit;
pub use invest::invest;
pub use redeem::redeem_in_kind;
pub use withdraw::sell;
pub use withdraw::withdraw;
pub use withdraw::withdraw_from_available;
pub use info::*;

Modules§

deposit
info
invest
redeem
withdraw