jl777 8 years ago
parent
commit
06cbfc9d30
  1. 4
      iguana/exchanges/LP_ordermatch.c

4
iguana/exchanges/LP_ordermatch.c

@ -989,9 +989,9 @@ struct LP_utxoinfo *LP_sellutxo(struct LP_utxoinfo *bestutxo,double *ordermatchp
bestutxo->pubkey = pubp->pubkey;
safecopy(bestutxo->gui,gui,sizeof(bestutxo->gui));
autxo->S.satoshis = bestutxo->S.satoshis;
*bestsatoshisp = bestutxo->S.satoshis / price;
*bestsatoshisp = autxo->S.satoshis;
*ordermatchpricep = price;
*bestdestsatoshisp = autxo->S.satoshis;
*bestdestsatoshisp = bestutxo->S.satoshis;
printf("ordermatch %.8f %.8f %.8f\n",price,dstr(*bestsatoshisp),dstr(*bestdestsatoshisp));
break;
}

Loading…
Cancel
Save