The Standard

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

Dynamic Swap Fee Calculation Not Reflected in Swap Function

Summary

In the swap function, a swap fee is calculated dynamically, but the hardcoded value 3000 is used in the params struct instead of the dynamically calculated fee. This results in a discrepancy between the expected and actual swap fees

Impact

Inaccurate swap fee calculations during the execution of the swap function.

Tools Used

Manual Analysis

Recommendations

Replace the hardcoded value 3000 in the params struct with the dynamically calculated swapFee to ensure accurate fee representation.

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.