Closed code423n4 closed 3 years ago
pauliax
Eliminate extra storage read and if statement:
if (_govPool != address(0)) { ps.govPool = _govPool; } require(ps.govPool != address(0), 'ZERO_GOV');
can be replaced with:
require(_govPool != address(0), 'ZERO_GOV'); ps.govPool = _govPool;
_govPool can be non zero, as the tokenInit() can be called multiple times.
per sponsor comment, invalid
Handle
pauliax
Vulnerability details
Impact
Eliminate extra storage read and if statement:
can be replaced with: