jl777 8 years ago
parent
commit
39a4b60283
  1. 1
      iguana/exchanges/LP_ordermatch.c

1
iguana/exchanges/LP_ordermatch.c

@ -908,6 +908,7 @@ struct LP_utxoinfo *LP_buyutxo(struct LP_utxoinfo *bestutxo,double *ordermatchpr
{ {
bestutxo->pubkey = pubp->pubkey; bestutxo->pubkey = pubp->pubkey;
safecopy(bestutxo->gui,gui,sizeof(bestutxo->gui)); safecopy(bestutxo->gui,gui,sizeof(bestutxo->gui));
autxo->S.satoshis = bestutxo->S.satoshis * price;
*bestsatoshisp = bestutxo->S.satoshis; *bestsatoshisp = bestutxo->S.satoshis;
*ordermatchpricep = price; *ordermatchpricep = price;
*bestdestsatoshisp = autxo->S.satoshis; *bestdestsatoshisp = autxo->S.satoshis;

Loading…
Cancel
Save