[don't Merge] [prime-testnet]: add testnet-only resetCycle to PrimeV2 + PrimeLeaderboard#680
Draft
Debugger022 wants to merge 3 commits into
Draft
[don't Merge] [prime-testnet]: add testnet-only resetCycle to PrimeV2 + PrimeLeaderboard#680Debugger022 wants to merge 3 commits into
Debugger022 wants to merge 3 commits into
Conversation
Enables re-running the cycle 1 / cycle 2 migration flows on bsctestnet without redeploying or re-issuing a VIP. resetCycle clears per-cohort reward/staker state (interests incl. lifetimeAccrued, market score/index, deposit stacks, totalStaked) and unlocks re-seeding, reusing the same addresses, wiring, and ACM grants. ACM-gated and batched.
Split PrimeLeaderboard into its own deploy script and add the generated bsctestnet artifacts. Also drops the redundant ++nextScoreUpdateRoundId in resetCycle so the PrimeV2 implementation fits under the 24576-byte EVM code-size limit (was 10 bytes over, blocking the deploy).
Targets the VIP-675 addendum 3 redeployed PrimeV2 + PrimeLeaderboard pair on bsctestnet (pinned at block 112394811, one block after VIP execution). Covers: deployed-address sanity (proxy/impl/hooks/ownership), compressed multiplier tiers, Phase A bootstrap (initializeStakers + finalize + recordCycleSnapshot), Phase B cycle close + issueBatch, Phase C reset on both contracts, Phase D retry of the full initialization phase with back-to-back cycles and PLP anchor consistency. Adds chain 97 hardforkHistory so EDR knows which hardfork to use when forking testnet at the pinned block.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.