The fee calculation logic in PerpetualVault.sol
is flawed, potentially leading to incorrect fee distribution
The calculateFees
function does not account for edge cases, such as zero deposits or negative funding fees
Users could receive incorrect fee distributions, leading to financial losses or unfair advantages
Manual code review
Add checks for edge cases and ensure proper fee calculation
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.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.