Releases: dydxprotocol/v4-chain
Release protocol/v7.0.0-rc1
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
Release Protocol v7.0.0-dev7
What's Changed
- 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
Full Changelog: protocol/v7.0.0-dev5...protocol/v7.0.0-dev7
Release Indexer v7.0.0-rc1
Affiliates Support
- Split affiliate info fees by taker and maker (backport #2439) by @mergify in #2448
- add afflaiteReferredMakerRebates field to response (backport #2473) by @mergify in #2474
- [OTE-863] update username generation query (backport #2482) by @mergify in #2483
- [OTE-880] Emit log in case of collisions (backport #2500) by @mergify in #2504
Megavault Support
- Add current equity as a pnl tick. (backport #2335) by @mergify in #2365
- Use vault table rather than placeholder config flags to fetch vaults. (backport #2364) by @mergify in #2367
- Include getting main subaccount equity / pnl for megavault PnL query. (backport #2376) by @mergify in #2378
- Filter out to single tick per interval. (backport #2403) by @mergify in #2418
- Fix flaky vault test. (backport #2422) by @mergify in #2424
- Get latest hourly tick to compute final tick for megavault PnL. (backport #2454) by @mergify in #2466
- Improve vault endpoint performance. (backport #2475) by @mergify in #2484
Push Notifications
- [CT-1040] Push Notifications (1 of 4) - Add Notification Package #2185 #2185
- [CT-1040] Push Notifications (2 of 4) - Add Token To Postgres #2188 #2188
- [CT-1040] Push Notifications (3 of 4) - Add RegisterToken to Comlink #2191 #2191
- [CT-1040] Push Notifications (4 of 4) - Send Notifications From Ender #2192 #2192
Miscellaneous
- Add sql script latency metrics (backport #2356) by @mergify in #2371
- Add oracle prices index on ("marketId", "effectiveAtHeight") (backport #2368) by @mergify in #2374
- Add function to fetch availability zone id (#2326) (backport #2390) by @mergify in #2410
- Create consumer using rack id (#2352) (backport #2393) by @mergify in #2411
- [CT-629] Fix entryPrice calc (backport #2415) by @mergify in #2417
- Revert "[CT-629] Fix entryPrice calc" (backport #2425) by @mergify in #2426
- Fix bug with PnL aggregation. (backport #2446) by @mergify in #2451
- [OTE-846] Bazooka sequential clear (backport #2423) by @mergify in #2477
- Return undefined from getOrderbookMidPriceMap (backport #2441) by @mergify in #2486
- Don't increment messageId for custom ping messages (backport #2493) by @mergify in #2497
- [OTE-876] update roundtable loop timings for instrumentation and uncrossing (backport #2494) by @mergify in #2506
- Remove orderbook cache roundtable job (backport #2510) by @mergify in #2511
- Add config var to exclude specific stateful order ids from being processed. (backport #2513) by @mergify in #2514
Full Changelog: indexer/v7.0.0-dev1...indexer/v7.0.0-rc1
Release Indexer v7.0.0-dev7
What's Changed
- [CT-629] Fix entryPrice calc (backport #2455) by @mergify in #2496
- Don't increment messageId for custom ping messages (backport #2493) by @mergify in #2497
- [OTE-880] Emit log in case of collisions (backport #2500) by @mergify in #2504
- [OTE-876] update roundtable loop timings for instrumentation and uncrossing (backport #2494) by @mergify in #2506
- Remove orderbook cache roundtable job (backport #2510) by @mergify in #2511
- Add config var to exclude specific stateful order ids from being processed. (backport #2513) by @mergify in #2514
Full Changelog: indexer/v7.0.0-dev5...indexer/v7.0.0-dev7
Release Indexer V7.0.0-dev6
What's Changed
- [CT-629] Fix entryPrice calc (backport #2455) by @mergify in #2496
- Don't increment messageId for custom ping messages (backport #2493) by @mergify in #2497
- [OTE-880] Emit log in case of collisions (backport #2500) by @mergify in #2504
- [OTE-876] update roundtable loop timings for instrumentation and uncrossing (backport #2494) by @mergify in #2506
- Remove orderbook cache roundtable job (backport #2510) by @mergify in #2511
- Add config var to exclude specific stateful order ids from being processed. (backport #2513) by @mergify in #2514
Full Changelog: indexer/v7.0.0-dev5...indexer/v7.0.0-dev6
Release Indexer v7.0.0-dev5
What's Changed
- [OTE-846] Bazooka sequential clear (backport #2423) by @mergify in #2477
- [OTE-863] update username generation query (backport #2482) by @mergify in #2483
- Improve vault endpoint performance. (backport #2475) by @mergify in #2484
- Return undefined from getOrderbookMidPriceMap (backport #2441) by @mergify in #2486
Full Changelog: indexer/v7.0.0-dev4...indexer/v7.0.0-dev5
Release Protocol v7.0.0-dev5
What's Changed
Full Changelog: protocol/v7.0.0-dev4...protocol/v7.0.0-dev5
Release Indexer v7.0.0-dev4
What's Changed
- Revert "[CT-629] Fix entryPrice calc" (backport #2425) by @mergify in #2426
- Fix flaky vault test. (backport #2422) by @mergify in #2424
- Split affiliate info fees by taker and maker (backport #2439) by @mergify in #2448
- Fix bug with PnL aggregation. (backport #2446) by @mergify in #2451
- Get latest hourly tick to compute final tick for megavault PnL. (backport #2454) by @mergify in #2466
- add afflaiteReferredMakerRebates field to response (backport #2473) by @mergify in #2474
Full Changelog: indexer/v7.0.0-dev3...indexer/v7.0.0-dev4
Release Protocol v7.0.0-dev4
What's Changed
- 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
Full Changelog: protocol/v7.0.0-dev3...protocol/v7.0.0-dev4
Indexer v6.0.7
What's Changed
- Removes code that hits the OrderbookCache when generating candles.
Full Changelog: indexer/v6.0.6...indexer/v6.0.7