Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: medium
Valid

May be `sandwich attacked` during emergencyPause

Summary

During emergencyPause, the minimum amount of tokens that should normally be set is not set. This may result in a sandwich attack.

Vulnerability Details

In removeLiquidity, the minimum amount of tokens is determined by minLongTokenAmount: rlp.minTokenAAmt and minShortTokenAmount: rlp.minTokenBAmt. However, these are not set in emergencyPause. Therefore, it may be a target of a sandwich attack.

Impact

Sandwich attacks cause the process to proceed under very unfavorable conditions

Tools Used

Manual

Recommendations

Allow minTokenAAmt and minTokenBAmt to be set directly in the argument of emergencyPause.

Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

Slippage protection on emergency Pause/Resume

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.