At LeapDAO we have been recording reputation through colony for a while now, using the payment method.
The org’s Plasma-bridge contract regularly issues tokens based on validators submitting valid anchors to the Ethereum main-net, and now it accrued ~35,000 Leap to be distributed to the dev team as rewards.
I’m trying to map out a way to distribute the rewards through colony, and came up with the following:
- send the tokens from PlasmaBridge to our colony contract.
claimColonyFunds()to register the tokens in the general pot.
- ??? move tokens from
startNextRewardPayout()to start reward payout. how to generate reputation proof?
- each user calls
claimRewardPayout(). how to calculate square roots? how to calculate reputation proof?
- 60 days later call
finalizeRewardPayout()to finalize payout, and start new one.
Are these steps roughly correct? If yes, how to generate the values needed for 5. and 6.?