Core Contracts

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

initiateLiquidation and liquidateBorrower shouldn't have whenNotPaused modifier.

Bug description

Both initiateLiquidation and liquidateBorrower have whenNotPaused modifier.

LendingPool.sol#L447

function initiateLiquidation(address userAddress) external nonReentrant whenNotPaused {

StabilityPool.sol#L449

function liquidateBorrower(address userAddress) external onlyManagerOrOwner nonReentrant whenNotPaused {

This is problematic, especially given the fact that loans continue to accrue interest when the protocol is paused. Not having the ability to liquidate a position when the protocol is paused can lead to bad debt.

Impact

Not being able to liquidate a position when the protocol is paused can lead to bad debt.

Recommended Mitigation

Consider removing whenNotPaused modifier from both initiateLiquidation and liquidateBorrower functions.

Updates

Lead Judging Commences

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

Unfair Liquidation As Borrow Interest Accumulates While Paused

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

Unfair Liquidation As Borrow Interest Accumulates While Paused

Support

FAQs

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

Give us feedback!