The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: medium
Valid

SmartVaultV3.swap fee tier is hardcoded

Summary

SmartVaultV3.swap fee tier is hardcoded, which doesn't allow users to make cheaper swaps.

Vulnerability Details

SmartVaultV3.swap function set uniswap fee tier as 3000 for all swaps and all type of collateral tokens being swapped. This is the most expensive tier and it's really likely that there will be other pools with cheaper fee tiers.

Impact

Users pay more fees for the swap

Tools Used

VsCode

Recommendations

Allow users to provide fee tier.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

fixed-uni-fee

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

hardcoded-fee

Support

FAQs

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