Handsome Pineapple Mustang
Medium
in _deleteAuctionOrder there is no assign for the isAuction[address(_createdAuction)] = false as we are deleting a _AuctionOrder. as we can call this function again and delete again.
function _deleteAuctionOrder(address _AuctionOrder) external onlyAuctions { // get index of the Auction order uint index = AuctionOrderIndex[_AuctionOrder]; AuctionOrderIndex[_AuctionOrder] = 0;
// get last Auction order
allActiveAuctionOrders[index] = allActiveAuctionOrders[
activeOrdersCount - 1
];
// take out last Auction order
allActiveAuctionOrders[activeOrdersCount - 1] = address(0);
// switch index of the last Auction order to the deleted Auction order
AuctionOrderIndex[allActiveAuctionOrders[index]] = index;
activeOrdersCount--;
}
No response
No response
No response
wrong implement of _deleteAuctionOrder.
No response
isAuction[address(_createdAuction)] = false