Excess gas in TokenDivider::divideNft()
function due to repeated modifier
The onlyNftOwner()
modifier conducts checks that verify that only the owner of an NFT can divide it. But, this modifier is repeated in the same function, thus conducting the checks twice.
Any gas used to conduct the checks in the first modifier run, is used again. basically wasting gas to run the same checks.
Manual review
Remove the extra modifier as it is practically useless at this point:
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.