The totalSupply function divided the scaled total supply by the usage index instead of multiplying it, causing the total supply to be incorrect.
The totalSupply function in the debt token divides the scaled total supply, as we can see:
This differs from the expected behavior of the debt token, which should multiply it, as seen in the balanceOf function.
This discrepancy breaks the protocol’s calculations by resulting in an incorrect total supply.
manual review
refactor the totalSupply function to multiply the total supply.
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.