release method

void release(
  1. int amount
)

Releases amount tokens back to the budget.

Implementation

void release(int amount) {
  _used = math.max(0, _used - amount);
}