Core Contracts

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

`StabilityPool` lacks receive/fallback function preventing ETH transfers from NFT liquidations

Description:

The NFTLiquidator::endAuction and NFTLiquidator::buyBackNFT functions attempt to transfer ETH to the StabilityPool during NFT buybacks:

function endAuction(uint256 tokenId) external {
// ...
payable(stabilityPool).transfer(winningBid); // <<<<<<
// ...
}
function buyBackNFT(uint256 tokenId) external payable {
// ...
payable(stabilityPool).transfer(price); // <<<<<<
// ...
}

However, the StabilityPool contract does not implement either receive() or fallback() functions. The transaction will automatically revert.

Impact:

  • Core protocol functionality (NFT liquidation) is broken

  • No way to complete NFT buybacks

  • Protocol cannot process liquidations properly

Recommended Mitigation:

Add receive or fallback function to StabilityPoolcontract.

Updates

Lead Judging Commences

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

StabilityPool misses receive/fallback breaking the integration with NFTLiquidator

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

StabilityPool misses receive/fallback breaking the integration with NFTLiquidator

Support

FAQs

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