code-423n4 / 2022-01-trader-joe-findings

2 stars 0 forks source link

_atPhase optimization #302

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

I don't see a reason why function _atPhase can't be replaced with just this:

  require(
    currentPhase() == _phase,
    "LaunchEvent: wrong phase"
  );
cryptofish7 commented 2 years ago

Duplicate of #162