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

Hardcoded USD price

Summary:

In the 'PerpetualVault.sol' in line 84 there is a hardcoded USD price

uint256 constant ONE_USD = 1e30;

Vulnerability Details:

Having hardcoded USD price could lead to mismatched precision with GMX or other protocols and incorrect pricing.

Impact:

written in vulnerability details

Tools Used:

Manual review

Recommendations:

Use chainlink price oracle

Updates

Lead Judging Commences

n0kto Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.

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.