RateLimited
Functions
constructor
Parameters
Name | Type | Description |
---|---|---|
| uint256 | |
| uint256 | |
| uint256 | |
| bool |
setRateLimitPerSecond
set the rate limit per second
Parameters
Name | Type | Description |
---|---|---|
| uint256 |
setBufferCap
set the buffer cap
Parameters
Name | Type | Description |
---|---|---|
| uint256 |
buffer
the amount of action used before hitting limit
replenishes at rateLimitPerSecond per second up to bufferCap
_depleteBuffer
the method that enforces the rate limit. Decreases buffer by "amount". If buffer is <= amount either 1. Does a partial mint by the amount remaining in the buffer or 2. Reverts Depending on whether doPartialAction is true or false
Parameters
Name | Type | Description |
---|---|---|
| uint256 |
_setRateLimitPerSecond
Parameters
Name | Type | Description |
---|---|---|
| uint256 |
_setBufferCap
Parameters
Name | Type | Description |
---|---|---|
| uint256 |
_resetBuffer
_updateBufferStored
Events
BufferUsed
Parameters
Name | Type | Description |
---|---|---|
| uint256 | |
| uint256 | |
### BufferCapUpdate |
Parameters
Name | Type | Description |
---|---|---|
| uint256 | |
| uint256 | |
### RateLimitPerSecondUpdate |
Parameters
Name | Type | Description |
---|---|---|
| uint256 | |
| uint256 |
Last updated