The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

The `amountOutMinimum` calculated in `swap` may not be the one user is willing to trade for.

Vulnerability Details

It is always better if the amountOutMinimum is provided by user and not calculated by protocol. Often times the calculated amount is not the one which user might always wish to go for. The protocol can calculate if user is unwilling to submit his own output amount, but generally user must have complete control over accepting the swap result.

Impact

User swaps for the ratio he is not willing to pay for.

Tools Used

Manual

Recommendations

Let user pass the amountOutMinimum in the function params.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality
Assigned finding tags:

informational/invalid

Support

FAQs

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