Skip to main content

REFLECTOR_DECIMALS_EXPECTED

Constant REFLECTOR_DECIMALS_EXPECTED 

Source
pub const REFLECTOR_DECIMALS_EXPECTED: u32 = 14;
Expand description

Expected decimals() value for the primary Reflector oracle contract.

Reflector publishes 14-decimal precision per mainnet convention. The library’s BPS arithmetic and staleness comparisons assume this value; deviation from 14 returns OracleSafetyViolation::UnexpectedDecimals rather than silently producing scaled-wrong results.

Phase 7.2 closure of the lib.rs:820 plan — runtime validation replaces the previous “Phase 7 will add a one-time decimals() call” doc-only commitment.