Non-Custodial Architecture
pub trait VaultAdapter {
fn deposit(&self, amount: u64, user: Pubkey) -> Result<()>;
fn withdraw(&self, shares: u64, user: Pubkey) -> Result<()>;
fn query_yield(&self) -> YieldMetrics;
}Last updated
pub trait VaultAdapter {
fn deposit(&self, amount: u64, user: Pubkey) -> Result<()>;
fn withdraw(&self, shares: u64, user: Pubkey) -> Result<()>;
fn query_yield(&self) -> YieldMetrics;
}Last updated