diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index 54151f67a..afce2549e 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -704,7 +704,7 @@ char *LP_orderbook(char *base,char *rel,int32_t duration) for (i=n=0; i<numbids; i++) { jaddi(array,LP_orderbookjson(rel,bids[i])); - if ( bids[i]->numutxos == 0 && relcoin->electrum == 0 ) + if ( bids[i]->numutxos == 0 || relcoin->electrum == 0 ) LP_address(relcoin,bids[i]->coinaddr), n++; free(bids[i]); bids[i] = 0; @@ -715,7 +715,7 @@ char *LP_orderbook(char *base,char *rel,int32_t duration) for (i=n=0; i<numasks; i++) { jaddi(array,LP_orderbookjson(base,asks[i])); - if ( asks[i]->numutxos == 0 && basecoin->electrum == 0 ) + if ( asks[i]->numutxos == 0 || basecoin->electrum == 0 ) LP_address(basecoin,asks[i]->coinaddr), n++; free(asks[i]); asks[i] = 0;