StakersDistribution
Staking contracts will update this contract with staker token stake amount.
This contract will be able to mint GDAO. 2M GDAO that will be allocated between staking contracts each month pro-rate based on $ value staked. Each staker will receive his share pro rata per staking contract he participates in.
Events
ReputationEarned
Emitted when the staker claims the reputation.
getChainBlocksPerMonth
The function returns amount of blocks in month.
setMonthlyReputationDistribution
The function updates the monthly reputation distribution.
Can only be called by the Avatar.
userStaked
The staking contract can call this function to increase user current contribution.
userWithdraw
The staking contract can call this to decrease user current contribution.
claimReputation
The function mints reputation to user according to his share in the different staking contracts.
getUserPendingRewards
The function gets user reputation rewards accrued in GoodStaking contracts.
Returns: reputation rewards pending amount for user.
getUserMintedAndPending
The staking contract can call this to decrease user current contribution.
Returns: a tuple of two items: (minted, pending) in GDAO tokens in wei.
Last updated