MartenitsaToken's transferFrom()/safeTransferFrom() can change people's tokens owned. However, we lack of updating the related variable countMartenitsaTokensOwner
.
In MartenitsaToken, there is one variable named countMartenitsaTokensOwner
. This countMartenitsaTokensOwner
aims to record how many NTF tokens this owner own. When people mint/sell/buy NFT Tokens, this variable can be changed correctly. However, NTF Token can be transferred by transfer()/transferFrom()/safeTransfer()/safeTransferFrom(). In these cases, the variable countMartenitsaTokensOwner
does not change correctly.
The result is as below:
Jack has already transferred his NTF Token to Alice. However, variable countMartenitsaTokensOwner
shows Jack still has one NTF Token.
The variable countMartenitsaTokensOwner
stat is in a mess. Sometimes is totally wrong. This can be manipulated to earn more rewards.
Manual & Foundry
Override standard ERC721's transferFrom/safeTransferFrom() to update the variable countMartenitsaTokensOwner
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.