Core Contracts

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

Liquidity Drift: Unbalanced Reserve Growth Due to Missing Rebalancing on Repayments

Summary

Fails to rebalance liquidity when users repay borrowed reserved assets into the Lending Pool. The _rebalanceLiquidity function is missing in the repay functions which will overtime cause a liquidity buffer inflation, capital inefficiency and create room for possible draining of the liquidity vault with excessive borrows.

Vulnerability Details

Every in-flow and out-flow of the reserve asset tokens are rebalanced to maintain a desired buffer ratio between the buffer and the Curve vault. Observe how this happens in the deposit, withdraw, and borrow function.

Impact

  • Inflation of liquidity buffer over time

  • Capital inefficiency for the Protocol

  • Possible vault draining with excessive borrow

Tools Used

Manual review.

Recommendations

Call the _rebalanceLiquidity function when repaying borrowed reserved assets.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

LendingPool::finalizeLiquidation or repay doesn't call _rebalanceLiquidity, leaving excess funds idle instead of depositing them in Curve vault for yield

Support

FAQs

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

Give us feedback!