During emergencyResume
, minMarketTokens
, which is a parameter originally required in addLiquidity
, is not set and is set to zero. This prevents slippage from being taken into account, making it a target of a sandwich attack.
minMarketTokens: alp.minMarketTokenAmt
is usually specified in AddLiquidityParams
, which is the argument to this function. However, this parameter is not specified in emergencyResume
. In other words, it is set to zero, and the minimum token value is not set, making it subject to a sandwich attack.
Sandwich attack will result in a deal with very unfavorable terms
Manual
Allow minMarketTokenAmt
to be set as an argument to emergencyResume
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.