Description:
The getRealizedDebtUsd
function in Market contract contains a fundamental logical error in debt calculation. This function is pivotal for core protocol operations including vault credit/debt settlement.
Impact:
Incorrect debt calculations for markets
Flawed vault credit/debt settlement
Potential system-wide accounting mismatches
Proof of Concept:
Scenario:
The current implementation adds credit deposits to issued tokens , leading to:
Inflated debt calculations
Incorrect credit capacity assessments
Potential over-delegation of credit
Recommended Mitigation:
Kindly correct the wrong calculation
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.