Fix perc math

This commit is contained in:
jl777
2019-01-12 15:55:31 -11:00
parent 7949fcb648
commit a35e6aaad0

View File

@@ -319,7 +319,9 @@ UniValue MarmaraPoolPayout(uint64_t txfee,int32_t firstheight,double perc,char *
}
if ( errorstr == 0 && shares > SMALLVAL )
{
shares += (shares / (1. - perc));
//shares += shares * perc;
shares /= (1. - perc);
if ( (total= AddMarmaraCoinbases(cp,mtx,firstheight,poolpk,60)) > 0 )
{
for (i=0; i<n; i++)