ore_pool_api::loaders

Function load_pool

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

Errors if:

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