You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a reward notifier that can be used by DAO's that want to distribute rewards that are currently held in a treasury wallet. The assumption is that the DAO will:
Approve this reward notifier to transferFrom the total number of tokens to be distributed
Whitelist this reward notifier to call notify on the Staker instance
The Reward Notifier should:
Have an immutable variable set on deployment which references the Staker instance
Have an immutable variable set on deployment which references the Staker instance's reward token
Be Ownable
Have an owner updateable rewardAmount parameter which defines the number of tokens that are transferred for each reward distribution
Have an owner updateable rewardInterval parameter which defines the minimum time between reward distributions
Have an owner updateable rewadSource parameter which defines the address from which rewards are transferFromed
Have a public notify method which:
Enforces that rewardInterval has elapsed since the last distribution
transferFrom's the tokens to the Staker instance
Calls notifyReward on the Staker
The text was updated successfully, but these errors were encountered:
Create a reward notifier that can be used by DAO's that want to distribute rewards that are currently held in a treasury wallet. The assumption is that the DAO will:
transferFrom
the total number of tokens to be distributednotify
on the Staker instanceThe Reward Notifier should:
rewardAmount
parameter which defines the number of tokens that are transferred for each reward distributionrewardInterval
parameter which defines the minimum time between reward distributionsrewadSource
parameter which defines the address from which rewards aretransferFrom
ednotify
method which:rewardInterval
has elapsed since the last distributiontransferFrom
's the tokens to the Staker instancenotifyReward
on the StakerThe text was updated successfully, but these errors were encountered: