The calculateHealthFactor
function uses 1e18
scaling instead of RAY (1e27)
, miscalculating health factors and causing unwarranted liquidations.
The health factor formula uses 1e18
for scaling, but the protocol uses RAY (1e27) for precision. This underreports health factors by 1e9, leading to premature liquidations.
False Liquidations: Users with sufficient collateral are liquidated.
Loss of Funds: Liquidated users lose NFTs at undervalued prices.
manual review
Use WadRayMath.RAY
(1e27) for scaling:
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.