fn apply_uses(uses_allowed: JsOption<UInt>, current: Option<u64>) -> Option<u64>
Fold the tri-state uses_allowed over the stored cap: an undefined field leaves it unchanged, an explicit null clears it.
uses_allowed
null