DeFiFoundry
50,000 USDC
View results
Submission Details
Severity: low
Invalid

function deposit in PerpetualVault.sol does not follow CEI (checks effects interactions).

Summary

The deposit function in PerpetualVault.sol does not follow the Checks-Effects-Interactions (CEI) pattern, making it vulnerable to reentrancy attacks if the nonReentrant modifier hadn't been used.

Vulnerability Details

The function updates the contract state after an external call

Impact

Without the nonReentrant Modifier it would cause a reentrancy.

Tools Used

Recommendations

Follow CEI

Updates

Lead Judging Commences

n0kto Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Too generic
Assigned finding tags:

Suppositions

There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.

Support

FAQs

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