-
Notifications
You must be signed in to change notification settings - Fork 145
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
Two-step ownership transfer for staking contracts #597
Conversation
ba89423
to
f7c7d0c
Compare
Codecov ReportBase: 95.08% // Head: 95.31% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #597 +/- ##
==========================================
+ Coverage 95.08% 95.31% +0.22%
==========================================
Files 41 41
Lines 3782 3732 -50
==========================================
- Hits 3596 3557 -39
+ Misses 186 175 -11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Cosm-Orc Gas Usage
Raw Report for 60b89b6
|
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.
Nice to see @larry0x's cw-ownership
in use. ❤️
let's wait for this before landing this PR as we'll have to update the initialization call: larry0x/cw-plus-plus#7 |
@0xekez i’ve merged it. Will make a new release a bit later |
contracts/staking/cw20-stake-reward-distributor/src/contract.rs
Outdated
Show resolved
Hide resolved
6cf275c
to
92b8be6
Compare
ac585d5
to
2e7980f
Compare
pre-empting some review: i understand that there is some less-than-dry code in these changes, specifically:
the code that is duplicated is so simple and brief, that imo it is more readable just written out each time instead of hiding it behind a level of indirection and an abstraction. |
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.
Really nice to clean this up. ❤️
Add context to multitest execution errors
this implements a two-step ownership transfer for all of our staking contracts using the
cw_ownable
crate.for each contract in
staking/*
:manager
is removedcw_ownable
integratedit is my opinion that having a contract-level owner and CosmWasm-level admin that is a DAO has approximately the same semantics as having an owner and a manager. assuming the admin is a DAO, and the owner an operations multisig:
that sentence could be reused in a situation where there is an owner, manager, and admin and still be accurate.