CapPolicy
Purpose: Enforce a maximum
totalAssetsceiling per node during deposits/mints.Guarded selectors:
deposit,mint.Config: Node owner sets a per-node cap with
setCap(node, amount);0disables the cap. No user data required.Behavior: On each guarded call, reads
INode(node).totalAssets(); if it exceeds the cap, reverts withCapExceeded(byAmount).
Last updated