Storage variable erc20ToNft is set in divideNft function. But then its never used.
Storage variable cost considerable amount of gas. A storage variable - " mapping(address erc20 => address nft) erc20ToNft;" is created. It is set as NFT address corresponding to erc20 token in divideNft function of TokenDivider.sol
But then it is never used in any other function.
Why to create a storage variable if it doesnt add value to the logical flow? There is no validation based on this variable. Nowhere, the NFT address is fetched based on erc20 token. Even when user claims NFT this mapping is not reset.
This variable can be removed.
Additional storage variable which is not useful and costs gas.
Manual Instpection.
Consider removing the storage variable.
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.