-
Notifications
You must be signed in to change notification settings - Fork 2
n1punp - FeeGrowthInside calculation doesn't allow overflowing/underflowing #1
Comments
Valid medium based on Uniswap/v3-core#573 |
|
Escalate Same as #46 |
You've created a valid escalation! To remove the escalation from consideration: Delete your comment. You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final. |
Agree with escalation, this is a duplicate of #46 |
Result: |
Escalations have been resolved successfully! Escalation status:
|
Fixed by adding unchecked several times to all the calculations to allow under/overflowing as it is intended for uniswap libs. Also, instead of using that many unchecked, sponsor could use one, but scope all the code. Regardless, it is also fixed this way. |
n1punp
high
FeeGrowthInside calculation doesn't allow overflowing/underflowing
Summary
When calculating
feeGrowthInside
, the calculation doesn't allow overflowing/underflowing.Vulnerability Detail
When calculating
feeGrowthInside
, the calculation doesn't allow overflowing/underflowing. See more details in Uniswap/v3-core#573Impact
Calculation can revert in some situations, causing the transactions to revert, including
deposit
function.Code Snippet
https://github.com/sherlock-audit/2023-06-real-wagmi/blob/main/concentrator/contracts/Multipool.sol#L668-L690
Tool used
Manual Review
Recommendation
unchecked
in the calculation to allow under/overflow.Duplicate of #46
The text was updated successfully, but these errors were encountered: