diff --git a/daodice-score/src/main/java/com/iconbet/score/daodice/DaoDice.java b/daodice-score/src/main/java/com/iconbet/score/daodice/DaoDice.java index 283c01a..d07a4d1 100644 --- a/daodice-score/src/main/java/com/iconbet/score/daodice/DaoDice.java +++ b/daodice-score/src/main/java/com/iconbet/score/daodice/DaoDice.java @@ -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"); }