bump max oracles to 13

This commit is contained in:
De Facto 2021-02-06 10:51:14 +08:00
parent 7402e0f15d
commit 95e03e682a
1 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,11 @@ use crate::state::AggregatorConfig;
use borsh::{BorshDeserialize, BorshSchema, BorshSerialize};
/// Maximum number of oracles
pub const MAX_ORACLES: usize = 12;
///
/// change to 14, and it fails with:
/// Stack offset of -4120 exceeded max offset of -4096 by 24 bytes, please minimize large stack variables
pub const MAX_ORACLES: usize = 13;
/// The amount paid of TOKEN paid to each oracle per submission, in lamports (10e-10 SOL)
pub const PAYMENT_AMOUNT: u64 = 10;