Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
add explicit assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Chou committed Aug 27, 2019
1 parent 6e98536 commit 8f002ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/external/traders/ExpiryV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ contract ExpiryV2 is
} else if (exp.timeDelta > 0) {
// bound the time by the minimum approved timeDelta
timeDelta = Math.max(minApprovedTimeDelta, exp.timeDelta).to32();
} else {
assert(exp.timeDelta == 0);
}
}

Expand Down

0 comments on commit 8f002ed

Please sign in to comment.