Closed howlbot-integration[bot] closed 2 months ago
The docs are wrong. The docs the warden is referencing are the website docs for the 3.4.0 release.
In the 4.0.0 code we can see it is documented that the amtRate cannot be 0: https://github.com/reserve-protocol/protocol/blob/72fc1f6e41da01e733c0a7e96cdb8ebb45bf1065/contracts/libraries/Throttle.sol#L21
The website docs should be updated, but that is out-of-scope for the contest.
thereksfour marked the issue as unsatisfactory: Out of scope
Lines of code
https://github.com/code-423n4/2024-07-reserve/tree/main/contracts/p1/RToken.sol#L452 https://github.com/code-423n4/2024-07-reserve/tree/main/contracts/p1/RToken.sol#L463
Vulnerability details
Impact
Admin can't set throttle amount as zero to solely rely on the issuance throttle rate. The same problem also exists in
RToken.sol#setRedemptionThrottleParams
.Proof of Concept
RToken.sol#setIssuanceThrottleParams
function is the following.Since
constant MIN_THROTTLE_RATE_AMT = 1e18 > 0
inL452
,params.amtRate
can't be zero. However the docs stated that:Tools Used
Manual Review
Recommended Mitigation Steps
Modify
RToken.sol#setIssuanceThrottleParams
function as follows.Assessed type
Error