In the claimNft
function, after an NFT is successfully claimed, the related entry in the nftToErc20Info
mapping is not deleted. This can lead to unnecessary storage usage and potential confusion, as the NFT address will still be present in the mapping even though it has been claimed.
Gas Inefficiency: Unused storage in the mapping consumes unnecessary gas.
Potential Misuse: Future function calls could reference outdated data, leading to unintended behavior.
Data Redundancy: Retaining stale records may create confusion when querying contract data.
Modify the claimNft
function to delete the mapping entry after successful NFT transfer.
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.