Description: The SpookySwap
contract has the changeOwner
function that allows the owner to change the owner of the contract. However, the SpookySwap
contract has the transferOwnership
function that allows the owner to change the owner of the contract. The changeOwner
function is unnecessary.
Line of code: TrickOrTreat.sol#L156
The changeOwner
function is unnecessary and spends gas during the deployment.
Manual code analysis
Remove the changeOwner
function from the smart contract.
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.