switchboard-aggregator 0.1.9

A Rust library to interact with Switchboard V2 data feeds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anchor_lang::prelude::*;

#[anchor_lang::error]
pub enum SwitchboardError {
    #[msg("Aggregator is not currently populated with a valid round.")]
    InvalidAggregatorRound,
    #[msg("Failed to convert string to decimal format.")]
    InvalidStrDecimalConversion,
    #[msg("Decimal conversion method failed.")]
    DecimalConversionError,
    #[msg("An integer overflow occurred.")]
    IntegerOverflowError,
    #[msg("Account discriminator did not match.")]
    AccountDiscriminatorMismatch,
}