RateLimited
Last updated
Last updated
Name | Type | Description |
---|---|---|
set the rate limit per second
set the buffer cap
the amount of action used before hitting limit
replenishes at rateLimitPerSecond per second up to bufferCap
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
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_maxRateLimitPerSecond
uint256
_rateLimitPerSecond
uint256
_bufferCap
uint256
_doPartialAction
bool
newRateLimitPerSecond
uint256
newBufferCap
uint256
amount
uint256
newRateLimitPerSecond
uint256
newBufferCap
uint256
amountUsed
uint256
bufferRemaining
uint256
### BufferCapUpdate
oldBufferCap
uint256
newBufferCap
uint256
### RateLimitPerSecondUpdate
oldRateLimitPerSecond
uint256
newRateLimitPerSecond
uint256