Core Contracts

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

NFTs stuck in Stability Pool

Summary

In the LendingPool contract when finalizing a liquidation the LendingPool sends the RAACNFT tokens of the liquidated user's position to the StabilityPool. The problem is that the StabilityPool contract doesn't have any functionality to handle those tokens, so esentially they are stuck forever.

for (uint256 i = 0; i < user.nftTokenIds.length; i++) {
uint256 tokenId = user.nftTokenIds[i];
user.depositedNFTs[tokenId] = false;
raacNFT.transferFrom(address(this), stabilityPool, tokenId);
}

Impact

Stuck NFTs

Tools Used

Manual review

Recommendations

Add functionality to the StabilityPool to handle these tokens.

Updates

Lead Judging Commences

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

Liquidated RAACNFTs are sent to the StabilityPool by LendingPool::finalizeLiquidation where they get stuck

Support

FAQs

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

Give us feedback!