Part 2

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

unused function ( death code)

[M-2] unused function

description
this function is not used in the protocol turning to death code

Proof of Concept:

/// @notice Rehydrates the credit deposits usd value cache and returns its latest value to the caller.
/// @param self The market storage pointer.
/// @return creditDepositsValueUsdX18 The market's credit deposits value in USD.
function rehydrateCreditDepositsValueCache(Data storage self)
internal
returns (UD60x18 creditDepositsValueUsdX18)
{
creditDepositsValueUsdX18 = getCreditDepositsValueUsd(self);
self.creditDepositsValueCacheUsd = creditDepositsValueUsdX18.intoUint128();
self.lastCreditDepositsValueRehydration = block.timestamp.toUint128();
}

Recommended Mitigation:

Updates

Lead Judging Commences

inallhonesty Lead Judge 3 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.