BidBeastsNFTMarket:withdrawFee Function, Incorrect Logic Leading to Possible Loss of All Fees by AdminUnder normal circumstances, the platform administrator should be able to withdraw the fees paid by users after transactions through the withdrawFee function.
However, due to the flawed logic in withdrawFee, if the administrator's actual address cannot receive Ether transfers (i.e., it is a contract account and does not have a receive or fallback function), calling this function will result in the loss of all fees.
Likelihood:
Only the administrator can call the withdrawFee function.
However, once the administrator's actual address cannot receive Ether transfers, disastrous consequences will occur.
Impact:
The administrator loses all fees.
Add the following code in BidBeastsMarketPlaceTest.t.sol:
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.