Submitted by hansfriese
Liquidation might work incorrectly.
There is a function purchaseLiquidationAuctionNFT() to allow liquidators to purchase NFTs on auction.
In the line 273, the protocol checks if the current NFT is the last collateral using the collateralValueCached.
But it might be possible for Reservoir Oracle to return zero (for whatever reason) and in that case collateralValueCached will be zero even when the _vaultInfo[auction.nftOwner][auction.auctionAssetContract].count!=0.
One might argue that it is impossible for the Reservoir oracle to return zero output but I think it is safe not to rely on it.
Change the line 273 as below.
wilsoncusack (Backed) confirmed and commented:
trust1995 (judge) commented:
hansfriese (warden) commented:
trust1995 (judge) commented:
