-
Notifications
You must be signed in to change notification settings - Fork 142
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
Distribution #792
Distribution #792
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## development #792 +/- ##
===============================================
+ Coverage 96.26% 96.41% +0.15%
===============================================
Files 209 214 +5
Lines 53514 55938 +2424
===============================================
+ Hits 51513 53933 +2420
- Misses 2001 2005 +4 ☔ View full report in Codecov by Sentry. |
93c4815
to
0794f49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall this looks great.
a little hard to review the new code you added as everything appears new because of the directory change, but both MemberChangedHook
and NftStakeChangedHook
logic makes sense to me!
Works with token factory DAOs.
cw4-group DAOs are not yet fully working...
To get rewards working with dao-voting-cw4, we needed to add a height to the VotingPowerAtHeight and TotalPowerAtHeight queries.
abbacfb
to
52caad6
Compare
Note sure why CodeCov is failing, but everything else passes. 🤷♂️ |
passes now! |
closing in favor of #835 |
Closes #667 🎉
User Story: As a DAO, I want to distribute rewards over time to members based on their voting power or stake.
This PR refactors the old
cw20-stake-external-rewards
into something that can be used by all types of DAOs. I've tried my best to add more code comments and documentation into this contract as well, hoping to make it a bit more readable as we move forward.Additionally, I created a new folder
distribution
as there was starting to be too much in theexternal
contracts folder. I movedcw-fund-distributor
there for now.As for
cw20-stake-external-rewards
, I have left it where it is for now, but thinking about deleting it...