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

CCIP-024: MiamiCoin Community Signal Vote #75

Merged
merged 9 commits into from
Aug 9, 2024
Merged

Conversation

whoabuddy
Copy link
Contributor

@whoabuddy whoabuddy commented Aug 2, 2024

Copy link

codecov bot commented Aug 2, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 88.25%. Comparing base (a2e367c) to head (6861ef2).

Files Patch % Lines
...racts/proposals/ccip024-miamicoin-signal-vote.clar 87.50% 6 Missing and 4 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
- Coverage   88.29%   88.25%   -0.04%     
==========================================
  Files          24       25       +1     
  Lines        1657     1737      +80     
  Branches      275      294      +19     
==========================================
+ Hits         1463     1533      +70     
- Misses        174      180       +6     
- Partials       20       24       +4     
Files Coverage Δ
...racts/proposals/ccip024-miamicoin-signal-vote.clar 87.50% <87.50%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2e367c...6861ef2. Read the comment docs.

All tests are expecting to use early stacking cycles in order to vote, but the contract sets the voting window too soon when it just goes off the block height it's deployed. For testing we extend the set blocks by u12600 which represents 6 * 2100 block cycle length. This should be removed for mainnet deployment and comments above include the correct code for deployment.
The logic can be simplified here since we have a set end block height for the vote, tests are updated as well.
@whoabuddy whoabuddy force-pushed the fix/implement-ccip-024 branch from ac0d730 to 14edf5d Compare August 9, 2024 22:11
@whoabuddy whoabuddy merged commit 69818b2 into main Aug 9, 2024
2 checks passed
@whoabuddy whoabuddy deleted the fix/implement-ccip-024 branch August 9, 2024 22:37
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.

1 participant