Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Reward Notifier For Transferring Tokens From A Treasury #97

Open
10 tasks
apbendi opened this issue Jan 15, 2025 · 0 comments
Open
10 tasks

Create Reward Notifier For Transferring Tokens From A Treasury #97

apbendi opened this issue Jan 15, 2025 · 0 comments

Comments

@apbendi
Copy link
Collaborator

apbendi commented Jan 15, 2025

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:

  1. Approve this reward notifier to transferFrom the total number of tokens to be distributed
  2. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant