BidBeastsNFTMarket::takeHighestBid function is missing a period check, creating some level of unclear information and confusion for users.The BidBeastsNFTMarket::takeHighestBid function’s NatSpec documentation indicates it can only be called before the auction ends. However, it does not check if the auction has ended, allowing the seller to take the highest bid after the auction ends.
This creates some level of unclear information and confusion for users, as it partially repeats the functionality of the `BidBeastsNFTMarket::settleAuction` function.
Likelihood: Medium
It might occur under specific conditions.
Seller accidentally calls takeHighestBid after an auction ends.
Impact: Low
Incorrect use of function.
Not a standard flow.
Add the following code snippet to the `BidBeastsMarketPlaceTest.t.sol` test file.
This code snippet is designed to demonstrate the `BidBeastsNFTMarket::takeHighestBid` function being successfully called after the auction ends.
Add a check for the auction end time to the `BidBeastsNFTMarket::takeHighestBid` function to ensure it can only be called before the auction ends.
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.