Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: high
Invalid

[H-10] currentLiquidityRate and currentUsageRate in ReserveLibrary/LendingPool cannot be set

Summary

The currentLiquidityRate and currentUsageRate in ReserveLibrary/LendingPool cannot be set due to a lack of setter functions and furthermore they are not initialized anywhere, so the interest rates are set to 0 and the usageIndex and liquidityIndex are always equal to 100% (in RAY units).

Vulnerability Details

Impact 1
Impact 2

Impact

The indices representing interest will never change, compromising the utility of the LendingPool and the protocol as a whole.

Tools Used

Manual review.

Recommendations

Either set an initial rate in the constructor of the LendingPool or add a setter-like function for the two indices.

Updates

Lead Judging Commences

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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