|
|
@ -735,7 +735,7 @@ void jumblr_DEXcheck(struct supernet_info *myinfo,struct iguana_info *coin,int32 |
|
|
|
double minbtc,minkmd,btcavail; char *retstr; cJSON *vals; bits256 hash; |
|
|
|
minbtc = (kmdcoin->DEXinfo.btcprice * 1.2) * (JUMBLR_INCR + 3*(JUMBLR_INCR * JUMBLR_FEE + JUMBLR_TXFEE)); |
|
|
|
btcavail = dstr(jumblr_balance(myinfo,coinbtc,kmdcoin->DEXinfo.depositaddr)); |
|
|
|
if ( toKMD == 0 && coinbtc != 0 && btcavail > (minbtc + kmdcoin->DEXinfo.DEXpending) ) |
|
|
|
if ( coinbtc != 0 && btcavail > (minbtc + kmdcoin->DEXinfo.DEXpending) ) |
|
|
|
{ |
|
|
|
avail = (btcavail - kmdcoin->DEXinfo.DEXpending); |
|
|
|
printf("BTC deposits %.8f, min %.8f avail %.8f\n",btcavail,minbtc,avail); |
|
|
@ -768,7 +768,7 @@ void jumblr_DEXcheck(struct supernet_info *myinfo,struct iguana_info *coin,int32 |
|
|
|
} |
|
|
|
} //else printf("btcavail %.8f pending %.8f\n",btcavail,pending);
|
|
|
|
minkmd = 100.; |
|
|
|
if ( toKMD != 0 && coinbtc != 0 && kmdcoin->DEXinfo.KMDavail > (minkmd + kmdcoin->DEXinfo.KMDpending) ) |
|
|
|
if ( coinbtc != 0 && kmdcoin->DEXinfo.KMDavail > (minkmd + kmdcoin->DEXinfo.KMDpending) ) |
|
|
|
{ |
|
|
|
avail = (kmdcoin->DEXinfo.KMDavail - kmdcoin->DEXinfo.KMDpending); |
|
|
|
printf("KMD deposits %.8f, min %.8f, avail %.8f\n",kmdcoin->DEXinfo.KMDavail,minkmd,avail); |
|
|
|