The contract performs multiple division operations that could lead to precision loss.
In the getPriceImpactInCollateral() function, there are division operations that may result in precision loss:
Precision loss could lead to inaccurate calculations of position sizes, fees, or price impacts, potentially resulting in small financial discrepancies.
Manual code review
Use a standard precision library for fixed-point arithmetic
Consider increasing the precision of intermediate calculations
Implement rounding mechanisms to handle precision loss consistently
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.
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.