This commit is contained in:
jl777
2018-07-26 04:19:15 -11:00
parent 87ccafbd6f
commit 3ed54ff10c
2 changed files with 3 additions and 2 deletions

View File

@@ -218,8 +218,9 @@ std::string CreateSell(uint64_t txfee,uint64_t askamount,uint256 assetid,uint256
opret = EncodeAssetOpRet('s',assetid,zeroid,pricetotal,Mypubkey());
else opret = EncodeAssetOpRet('e',assetid,assetid2,pricetotal,Mypubkey());
return(FinalizeCCTx(cp,mtx,mypk,txfee,opret));
}
} else fprintf(stderr,"need some assets to place ask\n");
}
fprintf(stderr,"need some native coins to place ask\n");
return(0);
}

View File

@@ -40,7 +40,7 @@
uint64_t RewardsCalc(uint64_t claim,uint256 txid,uint64_t APR,uint64_t minseconds,uint64_t maxseconds,uint64_t mindeposit)
{
uint64_t reward = 0;
// get start time, get current time
// get txtime2, get pblock->nTime
// if elapsed < mintime -> return 0
// if elapsed > maxtime, elapsed = maxtime
// calc reward