Skip to content

Commit

Permalink
cclistcoins RPC add potential stake
Browse files Browse the repository at this point in the history
  • Loading branch information
presstab committed Feb 1, 2015
1 parent 6c1e957 commit ddb325e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,9 @@ Value cclistcoins(const Array& params, bool fHelp)
if(dAge < 8.8)
nWeight = 0;
coutput.push_back(Pair("Weight", int(nWeight)));
double nReward = 7.5 / 365 * dAge * dAmount;
nReward = min(nReward, double(1000));
coutput.push_back(Pair("Potential Stake", nReward));
result.push_back(coutput);
}
return result;
Expand Down

0 comments on commit ddb325e

Please sign in to comment.