Incorrect Partial Debt Write-off
// Current approach only has two states:
if (debtToWriteOff == 0) {
// Handle fully solvent case
} else {
// Write off ALL uncovered debt
}
This creates issues in scenarios like:
Stream Balance: 1000 tokens
Total Debt: 1500 tokens
Uncovered Debt: 500 tokens
Recoverable Amount: 200 tokens pending
Current behavior: Writes off all 500 tokens
Correct behavior: Should write off 300 tokens, keep 200 recoverable
This fails to account for:
Pending deposits
Partial payments
Collateral liquidation
Fee rebates
// Current implementation forces complete write-off
_streams[streamId].isVoided = true;
_streams[streamId].ratePerSecond = ud21x18(0);
system accounting for debt write-off would be incorrect leading to wrong states
Manual Review
Support partial write-offs. Track recoverable amounts. Allow flexible recovery periods
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.