Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: low
Invalid

`lastCreditDepositsValueRehydration` Not Updated

Summary

In Market::getRealizedDebtUsd lastCreditDepositsValueRehydration is only set if the calculation is done through rehydrateCreditDepositsValueCache which is not the case here, so this reevaluation may not be needed. This makes the caching logic unused.

Impact

Unused caching logic leading to constant recalculations.

Tools Used

Manual Review

Recommendations

Update the lastCreditDepositsValueRehydration in getRealizedDebtUsd.

Updates

Lead Judging Commences

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.