Skip to content

[VPD-1314] Configure PrimeV2 on BSC#712

Open
Debugger022 wants to merge 1 commit into
mainfrom
feat/VPD-1314
Open

[VPD-1314] Configure PrimeV2 on BSC#712
Debugger022 wants to merge 1 commit into
mainfrom
feat/VPD-1314

Conversation

@Debugger022
Copy link
Copy Markdown
Contributor

Summary

  • Add VIP-675 (bsctestnet) bringing the new PrimeV2 and PrimeLeaderboard contracts live and decommissioning the legacy Prime.
  • Contracts deployed via venus-protocol PR #677; this VIP performs the on-chain governance setup the deploy scripts intentionally leave to governance.
  • Includes a fork simulation covering the full lifecycle and post-state.

Changes

VIP (vips/vip-675/bsctestnet.ts)

  • Accept ownership of PrimeV2 + PrimeLeaderboard (deploy initiates transfer to NormalTimelock; acceptance is governance).
  • Grant ACM permissions: config functions to NormalTimelock; epoch ops (issue/issueBatch/burn/burnBatch, setMintThreshold, initializeStakers, finalizeInitialization) to NormalTimelock + Guardian; pause/unpause to all three timelocks.
  • Wire PrimeV2 ↔ PrimeLeaderboard (ACM-gated, not done at deploy on live nets).
  • Repoint existing PrimeLiquidityProvider at PrimeV2 (setPrimeToken).
  • Add Core pool markets (vUSDT, vUSDC, vBTC, vETH) mirroring legacy supply/borrow multipliers.
  • Open permissionless mint window via setMintThreshold (1 XVS effective stake, no deadline).
  • Decommission legacy Prime via togglePause() (note: setLimit(0,0) reverts InvalidLimit — tokens already minted).
  • Tiers (30/60/90d → 1.3/1.6/2.0x) and tokenLimit (500) come from initializers; staker seeding done off-chain by Guardian.

Simulation (simulations/vip-675/bsctestnet.ts)

  • Pre-state, command execution, proposal lifecycle, post-state (ownership, wiring, PLP, tokenLimit, mint window, Guardian ACM roles, legacy paused, markets), and event assertions.

Test plan

  • npx hardhat test simulations/vip-675/bsctestnet.ts --fork bsctestnet → 62 passing (verified at block 110244560).
  • yarn tsc --noEmit, npx eslint, npx prettier --check on both files → clean.

Bring PrimeV2 + PrimeLeaderboard live on bsctestnet: accept ownership,
grant ACM perms (epoch ops to NormalTimelock + Guardian), wire the pair,
repoint PrimeLiquidityProvider, add Core pool markets, open the mint
window, and pause the legacy Prime. Includes fork simulation.
@Debugger022 Debugger022 self-assigned this May 29, 2026
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