According too the documentation, non-whitelisted users must be able to list the NFTs they have bought. However, due to the wrong application of the onlyWhitelisted modifier, they are prohibited from calling the list function.
By not being able too list their NFTs for sale, the bought NFTs will be locked in their wallets, unless they sell them out of the platform and by the means of direct transferring.
Likelihood: High
Because it is part of the program logic, it happens every time a non-whitelisted user tries to list their bought NFTs.
Impact: Medium
Even though it does not completely break the protocol, it stops some functionalities and hurts the users' feelings and trust about the protocol.
Please add the following function to the test file and run it using forge test --mt testNonWhitelistedUserCannotListBoughtNFT.
To solve this problem we just need to remove the onlyWhitelisted modifier from the function header, as follows.
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.
The contest is complete and the rewards are being distributed.