pub trait SolendProgramConfig {
    fn collateral_mint(&self) -> Pubkey;
    fn lending_market(&self) -> Pubkey;
    fn lending_market_authority(&self) -> Pubkey;
    fn pyth_price_account(&self) -> Pubkey;
    fn switchboard_price_account(&self) -> Pubkey;
    fn pyth_program_id(&self) -> Pubkey;
    fn switchboard_program_id(&self) -> Pubkey;
    fn reserve(&self) -> Pubkey;
    fn reserve_liquidity(&self) -> Pubkey;
    fn vault_collateral_account(&self) -> Pubkey;
}
Expand description

Trait type that is used to return configuration information, instruction helpers, etc.. for solend standalone vaults

Required Methods

returns the address of the collateral mint issued by the lending reserve

returns the lending market that the reserve is a part of

returns the authority of the lending market

returns the pyth price feed account

returns the switchboard price account

returns the address of the pyth oracle program

returns the address of the switchboard oracle program

returns the address of the lending reserve deposits go into

returns the token account the reserve uses to hold deposited liquidity

the solend standalone vault’s collateral token account

Implementors