The Standard

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

decreasePosition() does not follow CEI pattern

Vulnerability Details

When decreasing position, TST and EUROs tokens are transferred first before updating state to decrease balance of holder. This is essentially doing Interactions before Effects which is not best practice.

Impact

Low

Tools Used

Manual Review.

Recommendations

Do state changes before transferring tokens.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic
Assigned finding tags:

informational/invalid

Support

FAQs

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