Skip to main content

MAX_SAFETY_MARGIN_BP

Constant MAX_SAFETY_MARGIN_BP 

Source
pub const MAX_SAFETY_MARGIN_BP: u64 = 10_000;
Expand description

The largest safety margin a node accepts, in basis points — 10_000, i.e. +100%.

A margin is a cushion against the requirement rising, so doubling the requirement is already far past any honest cushion. The bound exists because .set is a MONEY-PATH mutation reachable with an ordinary paired token: an unbounded u64 lets a caller commit the operator to locking an arbitrary multiple of every store’s requirement, and the margin arithmetic saturates rather than failing, so an absurd value produces a silently enormous posting instead of an error.