RateLimiterBucket
Storage bucket for a single rate limit key.
struct RateLimiterBucket {
uint256 capacity;
uint256 refillRate; // tokens per second
uint256 tokens;
uint48 lastRefill;
}Properties
| Name | Type | Description |
|---|---|---|
| capacity | uint256 | |
| refillRate | uint256 | |
| tokens | uint256 | |
| lastRefill | uint48 |