We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withdrawByStablecoin
cmichel
The WithdrawHandler.withdrawByStablecoin incorrectly uses the lpAmount instead of the minAmount in the check.
WithdrawHandler.withdrawByStablecoin
lpAmount
minAmount
require(lpAmount > 0, "!minAmount");
Use minAmount > 0 if trying to check for !minAmount or use a different error message for an invalid LP amount.
minAmount > 0
!minAmount
The text was updated successfully, but these errors were encountered:
cmichel issue #97
bb4c12a
non-critical style/comment issue
Sorry, something went wrong.
Agree with non-critical. This does not influence functionality assuming that lpAmount > 0 is correct check.
lpAmount > 0
No branches or pull requests
Handle
cmichel
Vulnerability details
Vulnerability Details
The
WithdrawHandler.withdrawByStablecoin
incorrectly uses thelpAmount
instead of theminAmount
in the check.Recommended Mitigation Steps
Use
minAmount > 0
if trying to check for!minAmount
or use a different error message for an invalid LP amount.The text was updated successfully, but these errors were encountered: