add lottery distribution mechanism for newly minted tokens
We want a way to distribute newly minted tokens to participants in the Fathom network.
This mechanism should be independent of monetary policy but just decide who should receive new tokens in every block period.
Mechanism:
For every block period (i.e 100 blocks) there is a target hash corresponding to the blockhash of the first block in that period.
Any assessor of an assessment ending within that period can submit a hash consisting of
- Their address
- The address of their assessment
- A uint =< their stake for the assessment
- Their salt for the assessment
At the end of the block period the newly minted tokens are allocated with the assessor who submitted a hash closest to the target.
Concerns
An assessor should not be able to know before an assessment is completed the possible hashes they can submit.
It could be interesting to consider mechanisms that would let accounts outside the protocol get newly minted tokens, as a way to allow people to trustlessly join the network.