Skip to content

Commit

Permalink
cheaper statement first
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMeMyself authored and cryptofish7 committed Feb 1, 2022
1 parent 065d167 commit 8b00566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/LaunchEvent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ contract LaunchEvent {

/// @notice The current phase the auction is in
function currentPhase() public view returns (Phase) {
if (block.timestamp < auctionStart || auctionStart == 0) {
if (auctionStart == 0 || block.timestamp < auctionStart) {
return Phase.NotStarted;
} else if (block.timestamp < auctionStart + PHASE_ONE_DURATION) {
return Phase.PhaseOne;
Expand Down

0 comments on commit 8b00566

Please sign in to comment.