Skip to content

Commit

Permalink
Fix comparison for range 0 - 95
Browse files Browse the repository at this point in the history
Fix #12
  • Loading branch information
iconbetdev420 committed Jan 30, 2022
1 parent e679458 commit 8113687
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ private void __bet(BigInteger upper, BigInteger lower, String user_seed, BigInte
}

BigInteger gapResult = upper.subtract(lower);
if (!(BigInteger.ZERO.compareTo(gapResult) < 0 &&
gapResult.compareTo(_95) < 0)) {
if (!(BigInteger.ZERO.compareTo(gapResult) <= 0 &&
gapResult.compareTo(_95) <= 0)) {
Context.println("Bet placed with illegal gap " + TAG);
Context.revert("Invalid gap. Choose upper and lower values such that gap is between 0 to 95");
}
Expand Down

0 comments on commit 8113687

Please sign in to comment.