UManager
Inherits: Auth
State Variables
period
The period in seconds for the rate limit.
uint16 public period;allowedCallsPerPeriod
The number of calls allowed per period.
uint16 public allowedCallsPerPeriod;callCountPerPeriod
The number of calls made in the current period.
mapping(uint256 => uint256) public callCountPerPeriod;manager
The ManagerWithMerkleVerification this uManager works with.
boringVault
The BoringVault this uManager works with.
Functions
enforceRateLimit
constructor
setPeriod
Sets the duration of the period.
Callable by MULTISIG_ROLE.
setAllowedCallsPerPeriod
Sets the number of calls allowed per period.
Callable by MULTISIG_ROLE.
revokeTokenApproval
Allows auth to set token approvals to zero.
Callable by STRATEGIST_ROLE.
Events
PeriodUpdated
AllowedCallsPeriodUpdated
Errors
UManager__CallCountExceeded
Was this helpful?