Skip to main content

PAUSED_POOL_GLOBAL_CAP

Constant PAUSED_POOL_GLOBAL_CAP 

Source
pub const PAUSED_POOL_GLOBAL_CAP: usize = 10_000;
Expand description

Global cap on the total number of paused transactions across all tokens.

Without this cap, an attacker could repeatedly fill the main pool, trigger a pause, and shift transactions into the paused pool indefinitely. This bounds memory usage regardless of how many tokens are paused or how frequently pause events occur.