Calculations could be manipulated through direct transfers to the contract, increasing its balance as they depends on these balances.
Calculation poolTokensToWithdraw = (liquidityTokensToBurn * i_poolToken.balanceOf(address(this))) / totalLiquidityTokenSupply()
depends on balance and token supply - these values can be manipulated through external calls. Balance dependency: poolTokensToWithdraw = (liquidityTokensToBurn * i_poolToken.balanceOf(address(this))) / totalLiquidityTokenSupply()
. Supply dependency: liquidityTokensToMint = (wethToDeposit * totalLiquidityTokenSupply()) / wethReserves
Slither
Avoid possible manipulations of calculations because of external transfers.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.