Shortening revert strings to fit in 32 bytes will decrease deployment time gas and will decrease runtime gas when the revert condition has been met. e.g.:
require(
_startTime > block.timestamp,
"RocketJoeStaking: rJOE minting needs to start after the current timestamp"
);
require(
balance > 0,
"LaunchEvent: expected user to have non-zero balance to perform emergency withdraw"
);
require(
msg.sender == address(WAVAX),
"LaunchEvent: you can't send AVAX directly to this contract"
);
Handle
pauliax
Vulnerability details
Impact
Shortening revert strings to fit in 32 bytes will decrease deployment time gas and will decrease runtime gas when the revert condition has been met. e.g.: