jl777 7 years ago
parent
commit
c9916394e0
  1. 1
      iguana/exchanges/LP_ordermatch.c
  2. 2
      iguana/exchanges/LP_rpc.c

1
iguana/exchanges/LP_ordermatch.c

@ -25,6 +25,7 @@ uint64_t LP_txfeecalc(struct iguana_info *coin,uint64_t txfee)
{
if ( strcmp(coin->symbol,"BTC") == 0 )
{
coin->rate = 0.;
coin->rate = LP_getestimatedrate(coin);
if ( (txfee= coin->rate * LP_AVETXSIZE) < LP_MIN_TXFEE )
{

2
iguana/exchanges/LP_rpc.c

@ -629,7 +629,7 @@ double LP_getestimatedrate(struct iguana_info *coin)
double rate = 0.00000020;
if ( coin == 0 )
return(0.0001);
if ( strcmp(coin->symbol,"BTC") == 0 || coin->txfee == 0 || coin->rate == 0. || time(NULL) > coin->ratetime+60 )
if ( coin->txfee == 0 || coin->rate == 0. || time(NULL) > coin->ratetime+60 )
{
rate = _LP_getestimatedrate(coin);
if ( rate != 0. )

Loading…
Cancel
Save