Function switchboard_program::get_aggregator[][src]

pub fn get_aggregator(
    switchboard_feed: &AccountInfo<'_>
) -> Result<AggregatorState, ProgramError>
Expand description

Given a Switchboard data feed account, this method will parse the account state.

Returns a ProgramError if the AccountInfo is unable to be borrowed or the account is not initialized as an aggregator.