mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Bypass potential loss checking code if potential loss is 0
This commit is contained in:
parent
689469f298
commit
590b9ef9c5
1 changed files with 11 additions and 10 deletions
|
@ -29,6 +29,7 @@ def IsBetAmountValid(amount,minbet,maxbet,potential_loss,max_loss,max_loss_ratio
|
||||||
return False, "Max bet is %s" % AmountToString(maxbet * coinspecs.atomic_units)
|
return False, "Max bet is %s" % AmountToString(maxbet * coinspecs.atomic_units)
|
||||||
if amount < minbet:
|
if amount < minbet:
|
||||||
return False, "Min bet is %s" % AmountToString(minbet * coinspecs.atomic_units)
|
return False, "Min bet is %s" % AmountToString(minbet * coinspecs.atomic_units)
|
||||||
|
if potential_loss > 0:
|
||||||
if potential_loss > max_loss:
|
if potential_loss > max_loss:
|
||||||
return False, "Max potential loss is %s" % AmountToString(max_loss * coinspecs.atomic_units)
|
return False, "Max potential loss is %s" % AmountToString(max_loss * coinspecs.atomic_units)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue