emergencyResume()
expose to slippage while adding Liquidity to GMXv2
. There should be calculation of minAmount market token
received while adding liquidity to Market (GMXv2)
There is a function GMXManager.calcMinMarketSlippageAmt()
which Calculate minimum market (GM LP) tokens to receive when adding liquidity.
This is implemented in GMXWithdraw.processWithdrawFailure()
, https://github.com/Cyfrin/2023-10-SteadeFi/blob/main/contracts/strategy/gmx/GMXWithdraw.sol#L248-L268
Like same it should implemented here as well, before adding liquidity to GMXv2
, as it is not emergency
anymore. Liquidity will be added when Protocol RESUME
when suitable condition appear after PAUSE
Contract may receive less Market Token(Here GM TOKEN
) while adding liquidity to Market (GMXv2)
manual review
Impact: High Likelihood: Low Because the whole lpToken balance is used during the emergency process, the impact is high. But the likelihood is LOW because of the dependence on the emergency.
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.