[DRC] dYdX Protocol 4.0 Upgrade

TL;DR:

We’re excited to put up for consideration, the next version of the dYdX Protocol: version 4.0. This upgrade introduces significant advancements including Order Book Features, Risk and Safety Improvements, and Cosmos-related Enhancements.


Introduction:

Hello dYdX Community,

We’re bringing to your attention the dYdX Protocol Upgrade v4.0, aiming to enhance platform functionality and security, pending a governance vote.

Specification:

Detailed information on the Protocol v4.0 features can be found in the draft release notes.

Key updates include:

  • Reduce-Only Orders - added support for Fill-Or-Kill (FOK) and Immediate-Or-Cancel (IOC) orders with a Reduce-Only option.
  • Conditional Order Improvements - enhancements in telemetry and triggering mechanisms for conditional orders.
  • IBC Withdrawal Rate Limiting - introducing rate limiting for asset withdrawals using a Continuous Token Bucket algorithm, with default limits for Noble USDC.
  • Subaccount Withdrawal Gating - blocking transfers and withdrawals for 50 blocks under certain conditions, enhancing network safety.
  • Community Enabled Slashing - a governance feature that allows community proposals to slash validators for misconduct. This would enable the MEV Slashing Committee to create a governance proposal to slash validators engaged in malicious MEV as proposed on DIP 3Launch Social Mitigation Strategy for MEV”.
  • Adding the x/authz Module - incorporating the x/authz module from cosmos-sdk into the protocol to enable granting privileges.
  • Cosmos SDK v0.50 - upgrades to Cosmos SDK v0.50.3, enabling new features such as optimistic execution and vote extensions.

Next Steps:

Feedback is welcome on this DRC. We recommend a community member with enough DYDX to submit an on-chain proposal for the upgrade, aiming for a block height sometime on the Monday following the dYdX Protocol v4 software release.

Resources:


Your active participation is key to the governance and continuous improvement of the dYdX platform. We look forward to your feedback.

dYdX Operations SubDAO

12 Likes

Hey, @dYdX_Ops_subDAO

Thank you for nice update.
Some features like order FOK, IOC and reduce only orders were highly anticipated by traders.

I personally anticipate positive changes in governance with the implementation of the x-authz module.

1 Like

This team ships :ship: :ship: :ship: !!

We’re excited about x/authz and the potential for delegation efforts on dYdX.

1 Like

Very excited for Authz, among other features!

Is there a plan to wait for the TMKMS fix for the bug we experienced on testnet, or will we be going ahead with this upgrade regardless?

This update is packed with multiple improvements ranging from security features, governance features and pure utility improvements to the product. We are also particularly excited to see the introduction of the authz module. It opens enormous capabilities but it also comes with a great load of risks for users. One particularly scary consequence is that phishing scams could trick users into signing SendAuthorization or even GenericAuthorization.

Regarding this context, we advise the @Foundation to jointly create a program destined to inform users about the impending dangers authz transaction can carry if inappropriately used. We have already invited wallet providers to create a special UI framework for these types of transactions in order to prevent users’ from signing them without proper context. In the meantime extreme caution is recommended.

Despite these additional security considerations, we fully support this v4.0 upgrade.


Thanks for reading!
Govmos.
pro-delegators-sign

2 Likes

It is great to see the dYdX chain remain under heavy development after launching. Intruducing more professional and industry standard features are key to providing users with a CEX like experience.

The x/authz module is a welcome enhancement. Besides the staking applications that many validators would be excited for, the ability to delegate authority to a hot wallet for validator operations tasks greatly improves a validators ability to keep their operator keys offline in secure storage.

Kingnodes will be happy to submit the upgrade proposal and have the required dydx available. We would prefer to see more validator feedback on the upgrade and gain consensus regarding validator rediness for the upgrade.

null.

2 Likes

When will we have this upgrade take in place? No proposal to upgrade yet.

2 Likes

Hi @nguyenhd2107

The dYdX protocol v4.0 is not finalized yet, you can check the status over here: Testnet Status Page

As soon as it is released, the proposal phase can be initiated.

Cheers.

3 Likes

Hello dYdX Community,

Following the recent successful Testnet upgrade to dYdX Protocol 4.0, let’s discuss the action plan for rolling out the version in dydx-mainnet-1.

Here are some key points:

  • The latest dYdX Protocol 4.0 build (pre-release) can be found here.

  • Remote Signers: @Validators , for those of you who rely on Horcrux and tmkms, updating to the latest versions is required for operating the new binaries. They are currently in pre-release: Horcrux-v3.3 and tmkms-v0.14

We suggest the following plan:

  1. Monitor for the official release of the updated remote signers (ETA: TBD).

  2. A community member steps in to propose the dydx-mainnet-1 upgrade, optimally early in the week to allow ample time for community voting.

  3. Aim for an upgrade execution the following Monday post-vote, contingent on the readiness of the remote signers.


Note: while unlikely to change, the above version of dYdX Protocol 4.0 is still a pre-release and may be subject to changes before an official release.

We’ll continue to keep you informed about updates on point 1 above and any further steps.

The dYdX Ops subDAO.

3 Likes

We are ready for the upgrade. Never stop shipping!

3 Likes

Hello dYdX Community,

Quick update on the dYdX Chain Protocol 4.0 rollout, Horcrux v3.3.0 and Tmkms v0.14.0 are officially out.

As other dependencies, are expected to follow shortly, we suggest those considering initiating the upgrade vote to aim for next Monday (given that all elements are in place soon enough to allow the community sufficient time to review).

We’re also awaiting the official release tag for dYdX Chain Protocol 4.0, currently in pre-release.


dYdX Ops subDAO

5 Likes

Hello dYdX Chain @Validators and dYdX Community,

The dYdX Chain Protocol v4.0 has now been released.

Should the community decide to proceed with the dydx-mainnet-1 upgrade, we suggest targeting Monday, April 1st, for the launch of the upgrade proposal.

For the full details on the releases:


dYdX Ops subDAO

5 Likes

I am very much in favour of voting starting as soon as possible.

1 Like