The smart contracts for $DYDX and governance have been audited and rigorously tested. The core governance and token contracts are forked from the AAVE governance contracts which were audited by CertiK, Certora, and Peckshield and have been battle-tested live on mainnet for months. All major new smart contracts have been audited by Peckshield. No significant or high priority security issues were found. Audits have been made available on GitHub.
Despite our focus on system stability and user protection, risks always exist. An additional mechanism for securing the Protocol is the incentivization of $DYDX holders to stake tokens into a smart contract-based component called the Safety Module. The staked $DYDX will be used as a mitigation tool in case of a Shortfall Event on the Protocol. The interpretation of the occurrence of a Shortfall Event is subject to $DYDX governance votes.
The Safety Staking Pool, therefore, functions as an additional layer to protect users in the case of insolvency or other issues with the Protocol. Further, the risk of slashing incentivizes $DYDX holders to govern correctly: $DYDX holders risk dilutive events as the ultimate backstop and act as the governors of risk in the system.
How it works
2.5% of the $DYDX token supply (25,000,000 $DYDX) will be distributed to users who stake $DYDX to the safety staking pool. Staked $DYDX can be slashed to backstop the protocol.
Stakers will earn $DYDX rewards for staking $DYDX. $DYDX rewards will be distributed continuously according to each staker’s portion of the total DYDX in the pool.
A staker must request to withdraw $DYDX at least 14 days (Blackout Window) before the end of an epoch in order to be able to withdraw the staker’s $DYDX. If stakers do not request to withdraw, their staked $DYDX is rolled over into the next epoch. Withdrawals cannot be requested during the Blackout Window.
Risks
All funds in the contract, active or inactive, are slashable. Within the contract, slashing is implemented via an update to the exchange rate between $DYDX and $stkDYDX. This means that as slashes occur, the exchange rate between $DYDX and $stkDYDX will diverge from its initial value of 1:1. Note that the earning of staking rewards is unaffected by slashes.
Staked $DYDX may be slashed as a result of a shortfall event. Slashing occurs at the discretion of $DYDX governance, and requires a governance vote to enact.
The interpretation for the occurrence of a Shortfall Event is subject to a governance vote but may include:
- Exchange Solvency (e.g., exchange becoming under-collateralized due to unprofitable liquidations)
- Smart contract attacks
- Other events dYdX governance deems to have resulted in a shortfall
In a Shortfall Event, token holder balances can be slashed and transferred to another address or contract (set by dYdX governance on a case by case basis). dYdX governance must pass a short timelock proposal to slash staked tokens. After a governance vote on slashing staked $DYDX tokens, slashed $DYDX may be auctioned on the market to be sold against the assets needed to mitigate the incurred deficit.
Holders of $DYDX who deposit and stake their $DYDX into the Safety Staking Pool will receive a tokenized position ($stkDYDX). $stkDYDX is minted when a user stakes $DYDX, and is burned when a user withdraws their $DYDX from the pool. In the same transaction that $DYDX leaves a staker’s wallet, $stkDYDX enters the staker’s wallet’ or vice-versa when unstaking.
A $stkDYDX balance can be active or inactive. Active $stkDYDX can be transferred as an ERC-20, but cannot be withdrawn. Inactive $stkDYDX can be withdrawn, but cannot be transferred. $stkDYDX goes from active to inactive when a user requests to withdraw $DYDX from the pool Staking & Claiming
To stake, head to dydx.community and connect your wallet. Head to the Safety Staking Pool and click “Stake.” If you have not enabled $DYDX for staking before, you will have to complete an on-chain transaction to enable it prior to staking.
Once the Transfer Restriction Period is lifted on September 8, 2021 at 15:00 UTC, you will be able to claim earned $DYDX from staking block by block. Every claim will be in the form of an on-chain transaction.
Summary
Read the documentation to learn more about the Safety Staking Pool. Go here to stake to the Safety Staking Pool, and discuss potential Shortfall Events on the forums.
About the dYdX Foundation
Legitimacy and Disclaimer
Crypto-assets can be highly volatile and trading crypto-assets involves risk of loss, particularly when using leverage. Investment into crypto-assets may not be regulated and may not be adequate for retail investors. Do your own research and due diligence before engaging in any activity involving crypto-assets.
dYdX is a decentralised, disintermediated and permissionless protocol, and is not available in the U.S. or to U.S. persons as well as in other restricted jurisdictions. The dYdX Foundation does not operate or participate in the operation of any component of the dYdX Chain's infrastructure.
The dYdX Foundation’s purpose is to support the current implementation and any future implementations of the dYdX protocol and to foster community-driven growth in the dYdX ecosystem.
The dYdX Chain software (including dYdX Unlimited) is open-source software to be used or implemented by any party in accordance with the applicable license. At no time should the dYdX Chain and/or its software or related components (including dYdX Unlimited) be deemed to be a product or service provided or made available in any way by the dYdX Foundation. Interactions with the dYdX Chain software (including dYdX Unlimited) or any implementation thereof are permissionless and disintermediated, subject to the terms of the applicable licenses and code. Users who interact with the dYdX Chain software, i ncluding dYdX Unlimited (or any implementations thereof) will not be interacting with the dYdX Foundation in any way whatsoever. The dYdX Foundation does not make any representations, warranties or covenants in connection with the dYdX Chain software (or any implementations and/or components thereof, including dYdX Unlimited), including (without limitation) with regard to their technical properties or performance, as well as their actual or potential usefulness or suitability for any particular purpose, and users agree to rely on the dYdX Chain software (or any implementations and/or components thereof, including dYdX Unlimited) “AS IS, WHERE IS”.
Nothing in this post should be used or considered as legal, financial, tax, or any other advice, nor as an instruction or invitation to act by anyone. Users should conduct their own research and due diligence before making any decisions. The dYdX Foundation may alter or update any information in this post in the future at its sole discretion and assumes no obligation to publicly disclose any such change. This post is solely based on the information available to the dYdX Foundation at the time it was published and should only be read and taken into consideration at the time it was published and on the basis of the circumstances that surrounded it. The dYdX Foundation makes no guarantees of future performance and is under no obligation to undertake any of the activities contemplated herein.
Depositing into the MegaVault carries risks. Do your own research and make sure to understand the risks before depositing funds. MegaVault returns are not guaranteed and may fluctuate over time depending on multiple factors. MegaVault returns may be negative and you may lose your entire investment.The dYdX Foundation does not operate or has control over the MegaVault and has not been involved in the development, deployment and operation of any component of the dYdX Unlimited software (including the MegaVault).
Get Involved with the Community
Become a part of our journey to reshape the financial landscape