After the grace period passes, the stability pool finalizes the process and attempts to send all the liquidated NFTs to its contract. However, the contract cannot actually receive the NFTs because it lacks the onERC721Received function.
As we can see, the lending pool grants permission only to the StabilityPool to liquidate user debt. This privilege allows it to liquidate NFTs of the borrowers, but it fails to account for the fact that the StabilityPool requires a special function (onERC721Received) to receive these tokens.
The lending pool will accumulate bad debt, which can lead to system instability or corruption.
Manual audit
Add missing function onERC721Received.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.