ore_pool_api::loaders

Function load_share

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

Errors if:

  • Owner is not pool program.
  • Data is empty.
  • Data cannot be deserialized into a share account.
  • Share authority is not expected value.
  • Share mint account is not the expected value.
  • Expected to be writable, but is not.