CORIONplatform / solidity

GNU General Public License v3.0
12 stars 9 forks source link

checkReward(...) - owners reward vs. user reward timing #148

Closed gundas closed 7 years ago

gundas commented 7 years ago

Let's say I have a public provider with one user connected who has 10000 CORION. The provider gives 50% of schelling reward to connected users. Let's say there have been 3 schelling rounds with emission rates 2.5%, 2.5% and 0%. If the user gets his rewards after these 3 schelling rounds above, my public provider connected capital will be:

If the owner of this public provider calls checkReward(...) before the connected user, the owner will not get the schelling reward for the extra 125 CORION connected capital for the second schelling round. However, if the owner calls checkReward(...) after the user, he would receive extra 125*0.025*0.5 = 1.5625 CORION.

Not sure if this is a problem or not.

iFA88 commented 7 years ago

I understand what you say. There is no compound interest for calculating reward. The balance (supply) is only matter when the Schelling round ends. Emission/release comes from the total token supply and its fix 0.3% if we release tokens on that Schelling round.