Math.mulDiv in libraries/gmx/MarketUtils.sol uses bitwise XOR (^) instead of exponentiation (**), it can lead to incorrect mathematical computations, potentially causing miscalculations
In libraries/gmx/MarketUtils.sol file MarketUtils::applyFactor function uses Math.mulDiv. This mulDiv function uses bitwise xor ^ instead of exponential **
It can lead to incorrect mathematical computations, potentially causing miscalculations.
Slither
Avoid using Math.mulDiv and use the correct operator ** for exponentiation.
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.