Core Contracts

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

During liquidation when NFTs are are transferred to the stability pool, there is no way to withdraw them later.

Bug description

When liquidation is finalized, the NFTs used as collateral by borrower are transferred to the stability pool.

LendingPool.sol#L513-L518

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

However, after NFTs are transferred to stability pool, there's no way to withdraw them and they will be stuck in the contract.

Impact

NFTs transferred to stability pool during liquidation are lost.

Recommended Mitigation

Add a way to withdraw NFTs from the stability pool.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 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.