Open code423n4 opened 1 year ago
141345 marked the issue as low quality report
141345 marked the issue as duplicate of #202
alcueca changed the severity to QA (Quality Assurance)
alcueca marked the issue as grade-b
No mention that reentrancy protection makes this a non-issue, except for the cases found by other wardens.
Lines of code
https://github.com/code-423n4/2023-07-basin/blob/main/src/Well.sol#L215 https://github.com/code-423n4/2023-07-basin/blob/main/src/Well.sol#L645
Vulnerability details
Impact
This
_updatePumps
will update pumps' reserves before setReserves, so the pump's reserves are not the latest reserves. This means that Pump reserves are not correctProof of Concept
Tools Used
Manual review
Recommended Mitigation Steps
Recommend adding a logic to update pump into
_setReserve
function and removing that logic in_updatePumps
.Assessed type
Context