I'm trying to design a token that tracks each holder's cumulative ownership of the token supply over multiple epochs. Let's say Alice deposits 5 tokens in epoch 1 and Bob deposits 10 tokens in epoch 5. What is Alice's cumulative % ownership of the historical token supply since epoch 1?
If we gave Alice 1 "point" per token per epoch, she'd have 25 points in epoch 5 and Bob would have 10 points (35 points total). So Alice will have owned 71.4% (25/35) of the historical supply and Bob will have owned 28.6% (10/35).
How could this be codified in a token contract in a way that also maintains Alice and Bob's original token balances (5 and 10, respectively)?