github dydxprotocol/v4-chain protocol/v7.0.0-rc2
Release protocol/v7.0.0-rc2

latest release: protocol/v7.0.0
pre-release18 hours ago

Release candidate for v7.0.0 binary. Requires breaking upgrade from v6.x.x (upgrade name: v7.0)

Highlights

This release includes changes in following major areas:

  • Vaults for providing additional liquidity to various markets (Megavault)
  • Permissionless listing of new markets
  • Affiliates program

Detailed Changes

MegaVault

MegaVault is a user-facing vault that accepts deposits from users, uses the deposited USDC to provide liquidity to various markets, and distributes the generated yield (or loss) across the vaults depositors.

Permissionless Listing of Markets

Allows users to instantly launch new markets they’d like to launch. The listable markets are constrained to all markets available in x/marketmap .
As part of the listing, the user deposits $10,000 UDSC into the Megavault which is locked for a period of 30 days.

The permissionless market listing transaction will create the market, perpetual and clob pair in the protocol and allocate the deposit into the new market vault which will start quoting immediately and provide liquidity to the new market

Affiliates Program

Allows traders to refer other traders to the dYdX platform. Referred users receive a discount in trading fees and referees receive a share of the trading fees generated by the referred user

What's Changed

  • Fix: deterministically fetch perp info from state (backport #2341) by @mergify in #2346
  • [OTE-823] Fix FNS onchain events staging + retrieval logic (backport #2318) by @mergify in #2363
  • migrate vault shares to megavault shares in v7 upgrade handler by @tqin7 in #2379
  • [OTE-839] add query for unconditional revshare (backport #2380) by @mergify in #2382
  • Add a cli method for vault withdrawal (backport #2369) by @mergify in #2386
  • [OTE-840] add missing HasEndBlocker interface (backport #2384) by @mergify in #2385
  • [OTE-829] upgrade handler for affiliates (backport #2332) by @mergify in #2383
  • register deprecated MsgSetVaultQuotingParams (backport #2392) by @mergify in #2396
  • initialize megavault module account in 7.0.0 upgrade handler (backport #2394) by @mergify in #2400
  • chore: add OE Abort rate debug flag (backport #2366) by @mergify in #2401
  • bug: Internalize FNS logic to stage FinalizeBlock events (backport #2399) by @mergify in #2404
  • chore: Bump Cometbft to log proposer when proposal is rejected (backport #2421) by @mergify in #2427
  • [TRA-617] Integrate PML and Megavault (backport #2331) by @mergify in #2377
  • [TRA-617] Fix calculation for atomic resolution (backport #2360) by @mergify in #2433
  • Move FinalizeBlock event staging logic into a generic EventStager (backport #2435) by @mergify in #2436
  • [TRA-654] add listing module state init into v7 upgrade handler (backport #2432) by @mergify in #2445
  • Update GetAllRevshare to handle liquidations (backport #2413) by @mergify in #2437
  • remove deprecated params from x/vault params query (backport #2387) by @mergify in #2440
  • fix tsnonce preventing multisignature bug (backport #2453) by @mergify in #2460
  • feat: make PML compatible with OE by staging in-memory CLOB side effects (backport #2447) by @mergify in #2459
  • [OTE-849] Add metrics to track revenue shares (backport #2449) by @mergify in #2457
  • in testing, megavault main subaccount has 0 usdc by default (backport #2462) by @mergify in #2463
  • don't initialize megavault subaccount if balance is 0 in genesis (backport #2464) by @mergify in #2465
  • remove megavault subaccount from sample pregenesis (backport #2467) by @mergify in #2468
  • Revert "feat: make PML compatible with OE by staging in-memory CLOB side effects (backport #2447)" by @teddyding in #2469
  • feat: make PML compatible with OE by staging in-memory CLOB side effects (backport #2447) by @teddyding in #2470
  • [OTE-852] Register rpc routes in module (backport #2480) by @mergify in #2481
  • Add GRPC gateway route for listing module and add hard cap setting (backport #2489) by @mergify in #2490
  • set each megavault share to be worth 0.001 usdc on 7.x upgrade (backport #2492) by @mergify in #2501
  • [OTE-877] deprecate OI indexer update event (backport #2499) by @mergify in #2508
  • Drop patch number from upgrade name, v7.0.0 to v7.0 (backport #2512) by @mergify in #2515
  • Bump SDK - Always Reset OE (backport #2531) by @mergify in #2533

Don't miss a new v4-chain release

NewReleases is sending notifications on new releases.