Closed code423n4 closed 1 year ago
https://github.com/code-423n4/2023-05-juicebox/blob/main/juice-buyback/contracts/JBXBuybackDelegate.sol#L216
amount0Delta & amount1Delta could uniswapV3SwapCallback could be returns negative value could lead to unexpected behavior on swap
Based on document of Uniswap: https://docs.uniswap.org/contracts/v3/reference/core/interfaces/callback/IUniswapV3SwapCallback
Manual Review
Check & Handle Negative values
Uniswap
Withdrawn by Fanz
Lines of code
https://github.com/code-423n4/2023-05-juicebox/blob/main/juice-buyback/contracts/JBXBuybackDelegate.sol#L216
Vulnerability details
Impact
amount0Delta & amount1Delta could uniswapV3SwapCallback could be returns negative value could lead to unexpected behavior on swap
Proof of Concept
Based on document of Uniswap: https://docs.uniswap.org/contracts/v3/reference/core/interfaces/callback/IUniswapV3SwapCallback
Tools Used
Manual Review
Recommended Mitigation Steps
Check & Handle Negative values
Assessed type
Uniswap