This commit is contained in:
@@ -218,8 +218,9 @@ std::string CreateSell(uint64_t txfee,uint64_t askamount,uint256 assetid,uint256
|
|||||||
opret = EncodeAssetOpRet('s',assetid,zeroid,pricetotal,Mypubkey());
|
opret = EncodeAssetOpRet('s',assetid,zeroid,pricetotal,Mypubkey());
|
||||||
else opret = EncodeAssetOpRet('e',assetid,assetid2,pricetotal,Mypubkey());
|
else opret = EncodeAssetOpRet('e',assetid,assetid2,pricetotal,Mypubkey());
|
||||||
return(FinalizeCCTx(cp,mtx,mypk,txfee,opret));
|
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);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 RewardsCalc(uint64_t claim,uint256 txid,uint64_t APR,uint64_t minseconds,uint64_t maxseconds,uint64_t mindeposit)
|
||||||
{
|
{
|
||||||
uint64_t reward = 0;
|
uint64_t reward = 0;
|
||||||
// get start time, get current time
|
// get txtime2, get pblock->nTime
|
||||||
// if elapsed < mintime -> return 0
|
// if elapsed < mintime -> return 0
|
||||||
// if elapsed > maxtime, elapsed = maxtime
|
// if elapsed > maxtime, elapsed = maxtime
|
||||||
// calc reward
|
// calc reward
|
||||||
|
|||||||
Reference in New Issue
Block a user