Skip to main content

DEFAULT_SURPLUS_SHARES

Constant DEFAULT_SURPLUS_SHARES 

Source
pub const DEFAULT_SURPLUS_SHARES: u8 = _; // 16u8
Expand description

Shares emitted per polynomial beyond DEFAULT_POLY_THRESHOLD, to absorb losses.

The third leg of the deployed split, and like the other two a single value rather than one per crate: it used to be a literal 20 here and a separately-derived 32 in PixGlobalConfig::additional_shares, which meant SsaGeneratorConfig::default modelled a cycle no deployed node ever runs. That mattered little while the surplus was unpriced; it stopped being harmless once the per-SSA quota started counting it, because the quota is a const and had to pick one of the two.

Only the value of default_surplus_for at the default threshold. Anything that knows its own threshold should call that instead — this constant cannot, which is exactly the defect above.