Function switchboard_program::get_aggregator[][src]

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

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.