Skip to content

Conversation

@mccallofthewild
Copy link

Drop-in sdk.Coins staking contract compatible with cw20-stake. All tests passing. This seems like a cleaner approach than merging the proposal and staking modules.

This makes progress on syncing DAO DAO with the protocol level as referenced in #543. Easiest way to do this while accounting for slashing is by nesting validator staking contracts under a root staking contract.

I also have something that automatically provisions staking reward distributors for any token. At the protocol level it would make airdrops extremely simple.

@0xekez
Copy link
Contributor

0xekez commented Feb 20, 2023

hello! thanks for the contribution. @mccallofthewild would you mind expanding on what you'd like to use this contract for? i am very happy to review, just curious so i can situate it.

we also have a native token staking contract here: https://github.com/DA0-DA0/dao-contracts/tree/main/contracts/voting/dao-voting-native-staked, though it does not have staking hooks so i could see why this would be preferable. have you seen that one? i'd be interested in your thoughts on if that's worth improving, or if we should replace it with this.


to fix the lint issue:

just lint

to fix the typescript generation:

just gen

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

Successfully merging this pull request may close these issues.

2 participants