-
Notifications
You must be signed in to change notification settings - Fork 7
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
CCIP-019 PoX-4 Stacking #67
Conversation
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.
Hey just gave this a once over and feels like we're part of the way there, some open questions and suggestions to match the formats of other proposals to start.
We should include a vote per CCIP-015, even if it's just with MIA and focused on the MIA treasury (see comments).
We should add tests for these new contracts which is tricky with the changes in formatting for Clarinet. I'm not a fan of disabling the old tests, but propose we try to keep this and add new tests side-by-side to ensure all expected outcomes.
Tests fails because we now have epoch 2.5 that is required for pox-4 that is used in the treasury-v3 contract.. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #67 +/- ##
=======================================
Coverage 88.29% 88.29%
=======================================
Files 24 24
Lines 1657 1657
Branches 275 275
=======================================
Hits 1463 1463
Misses 174 174
Partials 20 20 Continue to review full report in Codecov by Sentry.
|
I think this has to do with using the mainnet addresses and the requirements, the Something funny was happening at that step and I've got it working locally just updating to all testnet addresses in the code. It wouldn't let me add to this branch (probably something I'm doing) so here's the commit with the changes that got it to pass.
Overall things look good here, I'll get a review going next and thank you for this!! 🙏 |
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 LGTM, one small change on the name in ccd005 and otherwise might be easier to use testnet addresses over mainnet for Clarinet.
|
||
;; add treasuries to ccd005-city-data | ||
(try! (contract-call? .ccd005-city-data add-treasury miaId .ccd002-treasury-mia-mining-v3 "mining-v3")) | ||
(try! (contract-call? .ccd005-city-data add-treasury miaId .ccd002-treasury-mia-stx-stacking-v3 "stx-v3")) |
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.
(try! (contract-call? .ccd005-city-data add-treasury miaId .ccd002-treasury-mia-stx-stacking-v3 "stx-v3")) | |
(try! (contract-call? .ccd005-city-data add-treasury miaId .ccd002-treasury-mia-stx-stacking-v3 "rewards-v3")) |
Small change but makes it easier to understand purpose.
Using mia over stx makes it easier to understand what the treasury is associated with, and the treasury name is part of the suggestion here (and fits in the 10char limit): #67 (comment)
Closing in favor of #76 |
This PR