Open code423n4 opened 2 years ago
kirk-baird
The logic in _atPhase()` can be simplified to save gas and code complexity.
The code can be simplified to the follwoing.
function _atPhase(Phase _phase) internal view { require(currentPhase() == _phase, "LaunchEvent: incorrect phase"); }
n/a
Consider updating the code to that procided above.
Fixed https://github.com/traderjoe-xyz/rocket-joe/pull/152/
Handle
kirk-baird
Vulnerability details
Impact
The logic in _atPhase()` can be simplified to save gas and code complexity.
The code can be simplified to the follwoing.
Proof of Concept
n/a
Tools Used
n/a
Recommended Mitigation Steps
Consider updating the code to that procided above.