From c68de697ff3153ebba64ee13f1298ef8e73496d3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 19 Sep 2017 15:43:47 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 313400107..4a0ac29a4 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -868,7 +868,9 @@ struct LP_utxoinfo *LP_address_utxopair(int32_t relflag,struct LP_utxoinfo *utxo utxo->deposit.txid = up2->U.txid; utxo->deposit.vout = up2->U.vout; utxo->deposit.value = up2->U.value; - utxo->S.satoshis = SATOSHIDEN * (relvolume / price); + if ( relflag != 0 ) + utxo->S.satoshis = SATOSHIDEN * (volume / price); + else utxo->S.satoshis = SATOSHIDEN * (volume * price); return(utxo); } }