What is the formula for determining the three variables, Min_coin_age, Min_coin_amount and Max_tithe_amount? I would like to better compute a few scenarios and exact-ish formula would be needed to do that.
Can an individual can tithe (can we please rename this to donate for our foreign users?) multiple times per day from the same wallet? If so, does this tithe accumulate for the day, and for silly numbers, if they donated 10x 300 for 3000 and the rest of the users donated a cumulative total of 3000, would they then get half the reward? How often is the difficulty calculated and is the monthly cap a rolling month or a 30 day fixed month?
On #1 :
// Tithe Parameter Ranges:
// min_coin_age : 0 - 60 (days)
// min_coin_amount : 1 - 25000
// max_tithe_amount: 300 - 1 (descending)
The exact formula for min_coin_age:
Given the Tithe_Cap (410987 per month in testnet), take the total 24 hour donations divided by tithe_cap: donations / tithe_cap, arrive at a Percent_Donated. Multiply that percent * ceiling(0,60) (in this case the 60) and add that to the floor (0). So another words, 50% donations mean min_coin_age 30.
For the min_coin_amount do exactly the same thing as above (compute a donation % for the current time) and then multiply * 25000, giving you for example 12,500 if we had 50% donations.
For max_tithe_amount descending, do exactly the same thing as above (compute a donation %), except now subtract it from 300 as this one is descending.
Let me answer the other question in the next post.