Test
This commit is contained in:
@@ -314,6 +314,9 @@ std::string FillSell(uint64_t txfee,uint256 assetid,uint256 assetid2,uint256 ask
|
||||
else inputs = AddNormalinputs(mtx,mypk,fillamount,60);
|
||||
if ( inputs > 0 )
|
||||
{
|
||||
if ( inputs < fillamount )
|
||||
fillamount = inputs;
|
||||
fprintf(stderr,"inputs %llu, fillamount.%llu\n",(long long)inputs,(long long)fillamount);
|
||||
SetAssetFillamounts(1,paid_amount,remaining_required,askamount,fillamount,totalunits);
|
||||
if ( assetid2 != zeroid && inputs > fillamount )
|
||||
CCchange = (inputs - fillamount);
|
||||
|
||||
@@ -5323,7 +5323,7 @@ UniValue tokenfillask(const UniValue& params, bool fHelp)
|
||||
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
|
||||
tokenid = Parseuint256((char *)params[0].get_str().c_str());
|
||||
asktxid = Parseuint256((char *)params[1].get_str().c_str());
|
||||
fillamount = atol(params[2].get_str().c_str());
|
||||
fillamount = atof(params[2].get_str().c_str()) * COIN;
|
||||
hex = FillSell(0,tokenid,zeroid,asktxid,fillamount);
|
||||
if ( hex.size() > 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user