The divideNft
function in TokenDivider.sol
redundantly applies the onlyNftOwner
modifier twice.
Impact:
Having the same modifier applied multiple times can lead to unexpected behavior, such as unnecessary gas consumption.
Found in src/TokenDivider.sol
Recommended Mitigation:
Remove the second occurrence of onlyNftOwner
to streamline the function.
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.