Function ore_api::loaders::load_treasury

source ยท
pub fn load_treasury<'a, 'info>(
    info: &'a AccountInfo<'info>,
    is_writable: bool,
) -> Result<(), ProgramError>
Expand description

Errors if:

  • Owner is not Ore program.
  • Address does not match the expected address.
  • Data is empty.
  • Data cannot deserialize into a treasury account.
  • Expected to be writable, but is not.