DYdX (DYDX)

After great community collaboration DYOR has rebranded into CryptoWiki.me 🥳 a moment to celebrate!

From now on all new information will be added within the CryptoWiki.mecommunity website! No longer over here. So be sure to move over to stay on top of new research developments!

Same content - better & cleaner experience 🤝

DYOR started out in 2015 on Fandom and has now grown to ~3500 pages on CryptoWiki.me 🤩

All the information that you can find in these pages is public knowledge with sources provided. The community is encouraged to add truthful and unbiased entries to further this body of work.

Follow @cryptowiki\_me on Twitter to be up to date on pages being created or edited.

## Basics

* Based in:  Switzerland
* Founded in 2017
* Live (1-3-2019) on Ethereum Mainnet
* dYdX *"enables open, efficient and secure financial products on cryptoassets"*.
* Liquidity protocol for margin trading

* Open trading platform for crypto assets
* Works on the application layer. Focus is on use cases.

* Launched the ETH-USDC market through 0x

## History

* From an interview with the founder, by The Defiant (21-3-2021):

*"I got into crypto back in 2015 when I had my first job out of college, which was at Coinbase as a software engineer. And I kind of got to Coinbase pretty differently than the way most people got there. The way most people got to Coinbase, especially back in 2015, is that they were really into Bitcoin, and especially back then in 2015, Bitcoin was really all there was in terms of the interesting stuff going on in crypto. But I didn't really know that much about it.*

*And through the interview process met a lot of really awesome people, was really fortunate while I was there to be able to work with just a lot of the top people in blockchain at the time were at Coinbase, or if they weren't they were probably coming to Coinbase and giving talks. Like Vitalik came really early on in the life cycle of Ethereum to talk to us, and Olaf Carlson-Wee, was there giving presentations on smart contracts and gas usage on Ethereum, and all this kind of stuff. So that just got me really excited about what was possible to build based on that new technology.*

*Because I really think of finance as a stack, especially decentralized finance as a stack where first you have decentralized money like Bitcoin and Ethereum and stuff, then you have decentralized spot exchanges like at the time, it was Kyber and 0x, and then the next logical thing to build on top of that is derivatives. But you can't build anything higher in the stack without things lower in the stack, and that's kind of what I was getting at back with the timing point. So been working on dYdX since then, we’re founded in 2017, so I've been around for a while now."*

## Audits & Exploits

* Bug bounty program can be found here. Max payout is $50,000 (29-6-2020).
* Blockchain Security DB (29-6-2020) shows 1audit. The latest was in 4-2019.
* Scored a 77% on DeFi Safety (9-2020): *"dydx had multiple audits through their development as documented on their site. The OpenZeppelin audit included improvements that were resolved as indicated. The link to the Bramah audit is broken meaning the audit report is not public. We will not give credit for the second audit. They have one audit from a top level audit organization. The audits is public and they have implemented findings in order to improve their code."*
* Got updated to an 92% score (29-12-2020): *"[This review] was performed using the Process Audit process (version 0.2) then was updated to V0.4 on 27 July 2020 and then 0.6 in 29 December 20202. The process is documented here. The audit was performed by ShinkaRex of Caliburn Consulting.*

*They have one audit from a top level audit organization. The audits is public and they have implemented findings in order to improve their code."*

### Bugs/Exploits

* From Week in Ethereum (11-12-2021):

*"dYdX deposit proxy post mortem, contract had user ERC20 approvals and could make arbitrary calls, $200k stolen, $500k bug bounty paid."*

* From their Twitter (27-11-2021):

*"The dYdX team was alerted of a security issue with a newly deployed smart contract. A white hat recovery of potentially vulnerable funds was executed in partnership with @samczsun and the dYdX team, and all potentially vulnerable funds were saved."*

### Liquidations in 1-2020

* From DeFi Weekly (17-1-2020):

*"During the drop to $120/ETH dYdX saw their total assets locked up drop from $30m all the way down to $15m! Why? Basically the volume of people trying to liquidate was so high that dYdX's front-end servers collapsed under the pressure. As a result many traders got liquidated and lost a lot of confidence in the platform. They're slowly making their way back up but it really shows how an incident like this can cause irreparable harm to a product/protocol's reputation when it comes to reliability. When we think about making software, reliability isn't a big as a focus compared to more traditional industries like medicine/automobiles etc due to the ease of making changes. However, I think the mindset of ensuring reliability in all cases is hard to enforce in the land of money enabled software as it takes a different mindset when designing your architecture (not just for smart contracts but the entire stack). The team's more than capable of fixing this but it should serve as a good reminder to any DeFi team that the reliability of your front-end is just as important as the reliability of your contracts, especially if the number of 3rd party interfaces for your protocol is limited. Furthermore, if liquidity is a moat to defend, a large loss of it can really impact both sides of the money market's equation."*

## Governance

### Admin Keys

* ConsenSys Codefi released (9-2019) a scoring website for DeFi projects. As of 2-11-2019 it has also analysed dYdX:

"*dYdX also provides a code audit report but has not performed formal verification. In the financial risk domain dYdX has maintained high liquidity and a moderate to high collateral index score."*

* Was classified *Degree 4 DeFi* on the HackerNoon rankings of 25-4-2019. *"These DeFi products are non-custodial, have permissionless margin calls, permissionless provision of margin call liquidity, and decentralized price feeds, but centrally determine interest rates and centrally control platform developments and updates."*

* A BIG side note, is that the blog was written by Kyle J Kistner who is Chief Vision Officer at bZx. He gave his own project the highest ranking. What a surprise.

* From the comprehensive blog post:

"***Custody****: dYdX smart contracts are non-custodial from the point of loan origination.*

***Initiating Margin Calls****: Margin calls can be initiated by anyone. There is a 5% discount on liquidated collateral to incentivize margin callers. Margin calls are permissionless.*

***Margin Call Liquidity****: Anyone can provide margin call liquidity, making this feature decentralized.*

***Price Feeds****: dYdX uses the MakerDAO price feed for ETH and DAI, but also uses the Uniswap and ETH2DAI price feed to bound the update price to mitigate attacks on the feed. The MakerDAO price feed is semi-centralized, but is also not controlled by dYdX. For this reason we believe the dYdX price feed should be considered decentralized, but not as decentralized as using Kyber. It should be noted that the centralization of the dYdX approach increases the cost of an attack on the price feed.*

***Interest Rates****: dYdX sets the interest rate model parameters, giving them central control over the interest rates.*

***Development****: The dYdX smart contracts are centrally developed and closed source. The team reports that the contracts will be verified on Etherscan shortly."*

* From DeFi Watch (9-3-2020):

*"dYdX's protocol is upgradeable via an admin key with a 3-day timelock and 2-of-3 multisig. The admin key is capable of making changes to critical parts of the smart contract ecosystem."*

* From Bankless (13-5-2020):

"*What’s interesting about dYdX is that while they maintain and have built a product on top of the protocol, the “DEX” fees accrue to the underlying company and not a decentralized ecosystem of tokenholders. Therefore, while dYdX operates a non-custodial exchange powered by its users, the revenues from trading fees directed towards the parent company actually brings dYdX closer to a CEX rather than a DeFi protocol."*

### Admin Key OpSec Risk Assessment

* The following information comes from a spreadsheet (4-2-2020) created by Chris Blec.

*"Current Admin Key Config- Time Lock: 3 days*

*Current Admin Key Config- Multisig: 2-of-3*

*Claimed Admin Key OpSec: None*

*Verified Admin Key OpSec: Unferifiable*

*Is security of deposited funds dependent on opsec of admin key?: Yes*

*Admin Key Address: Link*

*Documentation on Admin Key Powers: Help Center Article*

*Additional Info (if any)? Bramah Audit (Highly Privileged Accounts)"*

### DAO

* From The Block (15-6-2021):

*"There are also plans to decentralize the protocol. “Our goal really is to get to a point where we’re only publishing open-source code and all of dYdX is run natively on the blockchain, and the blockchain is available to more people in more places in the world,” said Juliano."*

## Token

### Launch

* 4-8-2021:

*"While the tokens can be claimed already, users will need to wait until September 8th for it to become transferrable."*

* From The Defiant (10-9-2021):

*"dYdX dropped 7.5% of its initial billion-strong token supply on Sept 8. At the current price of $11.12, those 75M tokens are worth more than $800M. At one point the airdropped tokens’ value eclipsed $1B."*

### Token Allocation

* From Crypto Briefing (4-8-2021):

*"More than 64,000 Ethereum addresses can claim the token granted they make at least one trade in August. The protocol is rewarding past users with an airdrop of the token DYDX. The distribution of 7.5% of the total tokens will take place during the next 28 days."*

## Tech

* Whitepaper can be found [insert here].
* Code can be viewed [insert here]. From The Block (15-6-2021):

*“Our goal really is to get to a point where we’re only publishing open-source code and all of dYdX is run natively on the blockchain, and the blockchain is available to more people in more places in the world,” said Juliano."*

### How it works

* From an interview with the founder, by The Defiant (21-3-2021):

*"So we at dYdX are what's known as a hybrid exchange, so that means that we have some centralized components which are our order book, and our matching engine services, and then some decentralized components, which are, of course, the smart contracts which run on the blockchain and make everything noncustodial.*

*So given that we run on an order book, we don't run on automated market makers, and kind of the reason for that is just order books are a lot more efficient in terms of being able to make the exchange have much more liquidity for the same amount of maker capital. Automated market makers are great, but they're very capital intensive. So you have to have, if you're Uniswap, or Sushiswap, or whatever, billions of dollars locked on the exchange to approach a similar level of liquidity as other exchanges that operate on order books have. So that's the way it works right now.*

*And then I think the other piece that's really critical to dYdX and the main kind of differentiator for us over most other decentralized exchanges is that we're focused on more advanced financial products. So the current product that we're really focused on is a synthetic, which is known as a perpetual contract. Probably a lot of people in crypto are already familiar with this. It's basically financially the same product that was really popularized by Bitmex and it is now super popular across the space on exchanges like Binance and FTX.*

### Introduction of fees

* Trading fees are distributed to the parent company.
* Initially, using dYdX was free, however, in early 2020 they introduced fees. From their blog (3-3-2020):

*"There are separate taker and maker fees, based on each trading pair. dYdX has been paying transaction fees for all trades since September. When orders are matched, dYdX submits a transaction to execute the matched trades on-chain. This has cost us over $40,000 in February alone."*

### Staking

* From Crypto Briefing (4-8-2021):

*"A safety staking pool will distrbute more of the governance token to users who stake the governance token. This safety pool will be used to create a safety net in case of a security failure. This pool will go live as DYDX becomes transferraible on September 8th."*

* From Our Network (14-8-2021):

*"Over $108M USDC across 400+ stakers is now being staked in Liquidity Staking Pool. This pool functions as a zero-interest, uncollateralized loan to known market makers governed by the dYdX Community. This capital will be used by market makers to continue to bolster liquidity on dYdX order books."*

### Scaling

* From their announcement (18-8-2020):

"*dYdX is excited to announce a partnership with StarkWare. Our engineering teams are collaborating on a Layer 2 scaling solution for Perpetual Contracts, based on StarkWare’s StarkEx scalability engine and dYdX’s Perpetual smart contracts. Our Perpetual Contracts will be powered by StarkEx by the end of this year."*

### Other Details

* From DeFi Weekly (11-3-2020). dYdX uses Typescript (which provides integration guarantees) instead of JSON ABI files (which need to be updated).

* From Our Network #22 (22-5-2020):

"*dYdX recently launched their BTC perpetual contracts. These contracts operate on the Ethereum blockchain and this system is the first non-custodial way to get exposure to BTC price movements in the Ethereum DeFi ecosystem. It was in private beta prior to launching publicly on May 13th. The protocol offers up to 10x leverage. Since launch, the protocol has seen good volumes, with daily volume exceeding $12M in a single day of trading. That pushed dYdX to the top of DEX volume."*

## Oracle Method

* From this list curated by Linda Xie on Github (8-4-2020):

### *"Oracle Method*

*Prices are fed to the dYdX smart contracts through price oracles that run on Ethereum. dYdX uses different price oracles for different assets.*

*For ETH, dYdX uses the MakerDAO ETH-USD V1 Oracle that is used by MakerDAO for their stablecoin SAI, and relies on a distributed network of reporters that report the price of ETH in USD.*

*For SAI, dYdX uses a price of $1. SAI can no longer be borrowed and is basically worth 0 as collateral. We only include this oracle method for completeness.*

*For DAI, dYdX uses our own price oracle which calculates the USD price of DAI using a combination of Oasis Trade's on-chain orderbook, Uniswap, and the MakerDAO ETH-USD oracle. The oracle also has several protections against price manipulation on eth2dai and Uniswap.*

*For USDC, dYdX uses a price of $1 as USDC is exchangeable 1:1 with USD on Coinbase.*

### *Contract Addresses*

*Up-to-date contract addresses for the Oracles that dYdX uses can be obtained by calling the `getMarketPriceOracle` function on dYdX's Solo Margin contract.*

*Currently the addresses are:*

* *WETH Oracle (Market ID 0): 0xf61AE328463CD997C7b58e7045CdC613e1cFdb69*
* *SAI Oracle (Market ID 1): 0x91d8825e0294d6628f8C93ac8ddA88773618608a*
* *USDC Oracle (Market ID 2): 0x52f1c952A48a4588f9ae615d38cfdbf8dF036e60*
* *DAI Oracle (Market ID 3): 0x0fBd14718d8FAB8f9f40Ee5c5612b1F0717100A2*

### *Source*

* *https://help.dydx.exchange/en/articles/2953486-where-does-price-information-come-from*
* *https://docs.dydx.exchange/#/contracts"*

## Compliance

* From DeFi Llama (28-8-2021):

*"Although they claim to be a decentralized exchange, their Perpetual services are unavailable to Americans, so the specifics of their decentralization are a bit unclear. They have taken some notable steps towards decentralization, including launching a dYdX Foundation based in Switzerland."*

## Roadmap

* From their twitter (12-1-2022):

*"dYdX V4 will be fully decentralized, community controlled, and have no central components. dYdX V4 will be open source, fully decentralized and entirely controlled by the community. In addition to full decentralization, we are exploring: Other trading products, such as spot, margin, and additional synthetic products."*

* From The Block (15-6-2021):

*"There are also plans to decentralize the protocol. “Our goal really is to get to a point where we’re only publishing open-source code and all of dYdX is run natively on the blockchain, and the blockchain is available to more people in more places in the world,” said Juliano."*

## Usage

* From Token Tuesdays (1-4-2020):

"*Since implementing their revenue model [fees], trading volume has only continued to explode, recently reaching it’s ATH in volume of $45M on Black Thursday a few weeks back."*

* From Our Network #7 (10-4-2020):

*"At inception it used 0x and Oasis DEXs to source liquidity. Late last year they launched their native markets. These markets allow users to trade with each other. dYdX's native market has seen significant growth since launching last year. On Black Thursday (March 12th, 2020), dYdX saw massive influx in amount traded, despite having to increase the minimum trade amount. (at the peak, the minimum amount was 50 ETH). That minimum clearly didn't matter much to users."*

* dYdX crossed (18-4-2020) 1billion USD in originated loans.
* From Our Network #22 (22-5-2020):

"*dYdX recently launched their BTC perpetual contracts. Since launch, the protocol has seen good volumes, with daily volume exceeding $12M in a single day of trading. That pushed dYdX to the top of DEX volume. Average trade size is always a good metric for an exchange. dYdX shines here with liquidity from their off-chain orderbook/on-chain settlement system. Post-launch, they saw average trade sizes of up to $7k. Trades per day naturally follows volatility, but dYdX has seen on average around 400 trades per day since launch."*

* Crossed $3B in transaction volume on dYdX since launch (19-1-2021).
* YdX ranks sixth among decentralized exchanges in volume across the last 7 days and ninth for users, according to data from Dune Analytics (26-1-2021).
* Since the DYDX token launch, dYdX has quickly (14-8-2021) become the top decentralized perpetuals exchange by volume (>$1B weekly volume), passing Perpetual Protocol. Weekly active traders on the network increased 635% to a total of 8,784 unique addresses. This has been largely driven by the Retroactive Mining and Trading Rewards Programs, which incentivizes 64,306 historical users of dYdX to onboard onto the L2 protocol and start trading.
* The volume on dYdX had a huge further increase (29-9-2021):

*"Tokens are critical for rollup projects. Interesting data point from dYdX. Daily volumes: - Token announced: shot up from $25M to $300M - Token released: $300M to $9B"*

dYdX now accounts for more than all other DEX trading combined.

## Team, Funding, partners

* Antonio Juliano; founder and CEO
* Zhuoxun Yin; Head of Strategy and Operations
* Reuben Bramanathan; advisor (28-9-2020).
* The Series C round will double their 16 person team over the course of next year (15-6-2021).

### Funding

* Raised(19-10-2018) $10M Series A led by a16z crypto and Polychain Capital. *"And continued support from Abstract Ventures, Kindred Ventures, 1confirmation, Elad Gil and Fred Ehrsam. We also welcome new investors: Craft Ventures, Bain Capital Ventures, Naval Ravikant, Kevin Hartz, Dragonfly Capital and VY Capital."*
* Is part of the portfolio (9-3-2020) of 1confirmation.
* From Decrypt (26-1-2021):

*"Raised $10 million in a Series B round. Three Arrows Capital and DeFiance Capital led the round, which also included investments from GSR, Hashed, RockTree Capital, Scalar Capital, SCP, Spartan Group, and Wintermute."*

* Raised $65M in a Series C raise (15-6-2021):

> *"A number of new strategic investors participated in the Series C raise alongside Paradigm, including liquidity providers QCP Capital, CMS Holdings, CMT Digital, Finlink Capital, Sixtant, Menai Financial Group, MGNR, Kronos Research; venture capital firms HashKey, Electric Capital, Delphi Digital; and StarkWare.*"
>
>

### Partners

* Has attended the program of Startup Studio

* Member of the DeFi Network
* Part of the WBTC community (still as of 8-2019)
* Member (7-4-2020) of the Chicago DeFi Alliance (CDA).
* Is a member of the Global DeFi Alliance of Huobi (17-8-2020).

(:
--

Knowledge empowers all and will help us get closer to the decentralized world we all want to live in!

Making these free wiki pages is fun but takes a lot of effort and time.

If you have enjoyed reading, tips are appreciated :) This will help us to keep expanding this archive of information.

ETH tip address: 0x83460bE5F218b1520B69D702cE60A1DE37dD8E31