Skip to main content

DEFAULT_SAFETY_MARGIN_BP

Constant DEFAULT_SAFETY_MARGIN_BP 

Source
pub const DEFAULT_SAFETY_MARGIN_BP: u64 = 100;
Expand description

The default local safety margin, in basis points — +1%.

The same value as dig_mirror_collateral::SAFETY_MARGIN_BP_DEFAULT, restated here rather than imported: dig-mirror-collateral sits at the SAME crate level as this contract, and a same-level dependency is forbidden (CLAUDE.md Appendix B). It is published on the contract so a config written before the field existed loads as the default rather than as a zero margin.

The default errs HIGH because the failure is asymmetric: under-posting likely costs an epoch’s rewards, while over-posting costs only the opportunity cost of the locked $DIG.