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); } }