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

2
iguana/exchanges/LP_rpc.c

@ -613,6 +613,8 @@ double LP_getestimatedrate(struct iguana_info *coin)
if ( rate < 0.00000020 ) if ( rate < 0.00000020 )
rate = 0.00000020; rate = 0.00000020;
coin->rate = rate * 1.25; coin->rate = rate * 1.25;
if ( coin->electrum != 0 )
coin->rate *= 2;
coin->ratetime = (uint32_t)time(NULL); coin->ratetime = (uint32_t)time(NULL);
if ( (rand() % 10) == 0 ) if ( (rand() % 10) == 0 )
printf("estimated rate.(%s) %s -> %.8f\n",coin->symbol,retstr,rate); printf("estimated rate.(%s) %s -> %.8f\n",coin->symbol,retstr,rate);

Loading…
Cancel
Save