The Standard

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

Wrong slippage protection on Token

Summary

SmartVaultV3 doesn't respect users' slippage specifications and allows more slippage than is requested

Vulnerability Details

The function calculateMinimumAmountOut tries to culculate minAmount despite the fact that a user provided minAmount while calling the swap

function calculateMinimumAmountOut(bytes32 _inTokenSymbol, bytes32 _outTokenSymbol, uint256 _amount) private view returns (uint256) {

Impact

At the end of the swap users will end up receiving less tokens than they asked for due to slippage.

Tools Used

Manual Review

Recommendations

Make use of user-specified slippage parameters

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.