Skip to content

[don't Merge] [prime-testnet]: add testnet-only resetCycle to PrimeV2 + PrimeLeaderboard#680

Draft
Debugger022 wants to merge 3 commits into
feat/VPD-1366from
primev2-testnet
Draft

[don't Merge] [prime-testnet]: add testnet-only resetCycle to PrimeV2 + PrimeLeaderboard#680
Debugger022 wants to merge 3 commits into
feat/VPD-1366from
primev2-testnet

Conversation

@Debugger022

Copy link
Copy Markdown
Contributor

No description provided.

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.
@Debugger022 Debugger022 self-assigned this Jun 9, 2026
@Debugger022 Debugger022 changed the title [prime-testnet]: add testnet-only resetCycle to PrimeV2 + PrimeLeaderboard [don't Merge] [prime-testnet]: add testnet-only resetCycle to PrimeV2 + PrimeLeaderboard Jun 9, 2026
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.
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