Core Contracts

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

No incentive for manager to liquidate dust amount

Vulnerability Details

When borrow token, user can borrow with any amount that must be > 0 only:

function borrow(uint256 amount) external nonReentrant whenNotPaused onlyValidAmount(amount) { //@idea dust amount
if (isUnderLiquidation[msg.sender]) revert CannotBorrowUnderLiquidation();
UserData storage user = userData[msg.sender];
uint256 collateralValue = getUserCollateralValue(msg.sender);
if (collateralValue == 0) revert NoCollateral();
. . . . . .
}
modifier onlyValidAmount(uint256 amount) {
if (amount == 0) revert InvalidAmount(); // <--
_;
}

So if NFT token and borrow token is small, calling liquidation will cost more token than gas fee, lead to no incentive to liquidate them.

Impact

Bad debt for protocol when do not liquidate them, and no incentive to liquidate

Recommendations

Minimum borrow amount should be significant amount, not just > 0

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!