Users can gift their MartenitsaTokens to each other free of charge by calling makePresent(). The only requirement is to own the token.
Martenitsa Tokens can also be listed for sale, listMartenitsaForSale(). This function modifies Listing struck member forSale as true when it's listed and as well the seller. But the makePresent() function does not check either of these.
forSale bool and seller should be checked in the makePresent function in order to avoid makePresent to be called. Otherwise listed NFT is made present it wont be able to be sold anymore by the new owner. Because the Listing struct has seller of the previous owner.. testNCTMakePresentListedToken.
Another effect is to reduce the updateCountMartenitsaTokensOwner of the previous owner.
foundry
forSale bool and seller should be checked in the makePresent function in order to avoid makePresent to be called.
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.