ore_pool_api::loaders

Function load_member

Source
pub fn load_member(
    info: &AccountInfo<'_>,
    authority: &Pubkey,
    pool: &Pubkey,
    is_writable: bool,
) -> Result<(), ProgramError>
Expand description

Errors if:

  • Owner is not pool program.
  • Data is empty.
  • Data cannot be parsed to a member account.
  • Member authority is not expected value.
  • Expected to be writable, but is not.