Skip to main content

DEFAULT_BUFFER_HORIZON_EPOCHS

Constant DEFAULT_BUFFER_HORIZON_EPOCHS 

Source
pub const DEFAULT_BUFFER_HORIZON_EPOCHS: u32 = 4;
Expand description

The horizon, in future epochs, a node covers when it recommends a buffer without being told otherwise — 4.

Published on the contract so a client can recognise the ordinary case, NOT so it can assume one: the horizon a node actually used always travels in CollateralBufferResult::Known, and a reader that substituted this constant for a payload it failed to read would state a claim the node never made.

Four epochs bounds the compounded escalation ceiling at roughly x1.60. Fewer leaves a node one bad epoch from dangerously_low; many more prices in a x4.62 worst case the controller reaches only by escalating every single epoch, and locking $DIG against it has a real opportunity cost.