Reduce contract gas usage
Checking if an address is zero is best done with assembly as this is way more safe and efficient than compoaring with addres(0)
excessive gas usage can rendered protocol useless
manual
replace line with the following assembly code
bool isZero;
assembly {
mstore(0, 0x00)
isZero := eq(someAddress, mload(0))
}
if (isZero) { // @audit - assembly can be used to reduce gas fee
revert AssetToken__ZeroAddress();
}
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.