Steadefi

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

The minWithdrawTokenAmt parameter set by the user may not work

Summary

When the user performs a withdraw operation, if the user takes out an lptoken, the afterWithdrawChecks function is not executed for checking.

Vulnerability Details

When the user performs a withdraw operation, if the user takes out an lptoken, the afterWithdrawChecks function is not executed for checking. The minWithdrawTokenAmt set by the user will also not take effect, to the detriment of the user. other checks in the afterWithdrawChecks function are also bypassed, which is risky for vault.

Impact

May affect user revenue, as well as pose a risk to vault.

Tools Used

manual

Recommendations

It is recommended that the afterWithdrawChecks function be executed for checking anyway.

Updates

Lead Judging Commences

hans Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality
drynooo Submitter
over 1 year ago
hans Auditor
over 1 year ago
hans Auditor
over 1 year ago
hans Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Missing afterWithdrawChecks for lpToken withdrawal

Impact: High Likelihood: High

Support

FAQs

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