#38137 [SC-Low] `RateLimits` library incorrectly reset the consumed amount when the limit is updated
Description
Brief/Intro
Vulnerability Details
uint256 decay = (_limit * timeSinceLastDeposit) / _window;
currentAmountInFlight = _amountInFlight <= decay
? 0
: _amountInFlight - decay;
amountCanBeSent = _limit <= currentAmountInFlight
? 0
: _limit - currentAmountInFlight;Impact Details
References
Mitigation
Proof of Concept
Proof of Concept
Previous#38116 [SC-Insight] Partner vaults don't account for FireBridge fees, forcing LBTC burn to never worNext#38148 [SC-Insight] Unnecessary Storage Pointer Declaration batchMintWithFee
Last updated
Was this helpful?