Skip to content

Commit

Permalink
cross links
Browse files Browse the repository at this point in the history
  • Loading branch information
usdaud committed Jul 13, 2024
1 parent c13a38b commit 1aa2b7c
Show file tree
Hide file tree
Showing 9,237 changed files with 238,537 additions and 238,537 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
52 changes: 26 additions & 26 deletions en/pedia/1/0x_protocol.md
Original file line number Diff line number Diff line change
@@ -1,109 +1,109 @@
# 0x Protocol

0x Protocol, also known simply as 0x, is a leading decentralized exchange (DEX) protocol that empowers developers to implement their own decentralized exchange applications or DEX functionalities. The primary aim of 0x is to facilitate the peer-to-peer trading of Ethereum-based tokens and assets, making it one of the fundamental building blocks in the decentralized finance (DeFi) ecosystem. This document provides an exhaustive exploration of the 0x Protocol, including its architecture, usage, underlying technology, governance, and role in the broader DeFi landscape.
0x Protocol, also known simply as 0x, is a leading decentralized [exchange](../e/exchange.md) (DEX) protocol that empowers developers to implement their own decentralized [exchange](../e/exchange.md) applications or DEX functionalities. The primary aim of 0x is to facilitate the peer-to-peer trading of [Ethereum](../e/ethereum_.md)-based tokens and assets, making it one of the fundamental building blocks in the decentralized [finance](../f/finance.md) (DeFi) ecosystem. This document provides an exhaustive exploration of the 0x Protocol, including its architecture, usage, [underlying](../u/underlying.md) technology, governance, and role in the broader DeFi landscape.

## Introduction to 0x Protocol

0x was conceived by Will Warren and Amir Bandeali in 2016, with an official initial coin offering (ICO) taking place in August 2017. The protocol is built on the Ethereum blockchain and is designed to be an open standard for DEXs that can easily integrate with multiple smart contracts and tokens.
0x was conceived by [Will](../w/will.md) Warren and Amir Bandeali in 2016, with an official initial coin [offering](../o/offering.md) (ICO) taking place in August 2017. The protocol is built on the [Ethereum](../e/ethereum_.md) [blockchain](../b/blockchain_in_trading.md) and is designed to be an [open](../o/open.md) standard for DEXs that can easily integrate with [multiple](../m/multiple.md) [smart contracts](../s/smart_contracts_in_trading.md) and tokens.

0x's native token, ZRX, plays several pivotal roles within the ecosystem, including governance and staking. The protocol’s flexible and modular design enables various applications ranging from order books to non-fungible token (NFT) marketplaces to leverage its capabilities.
0x's native token, ZRX, plays several pivotal roles within the ecosystem, including governance and staking. The protocol’s flexible and modular design enables various applications ranging from [order](../o/order.md) books to non-fungible token (NFT) marketplaces to [leverage](../l/leverage.md) its capabilities.

The official website for 0x Protocol can be found at [0x.org](https://0x.org/).

## Core Components of 0x Protocol

### Relayers

Relayers are key participants in the 0x ecosystem. They facilitate order discovery and matching by hosting and maintaining off-chain order books. Relayers do not hold custody of user funds, which ensures higher security and trustlessness in transactions.
Relayers are key participants in the 0x ecosystem. They facilitate [order](../o/order.md) discovery and matching by hosting and maintaining off-chain [order](../o/order.md) books. Relayers do not [hold](../h/hold.md) custody of user funds, which ensures higher [security](../s/security.md) and trustlessness in transactions.

### Smart Contracts

Central to 0x's functionality is its suite of smart contracts, which handle the critical aspects of trade execution. These contracts fully leverage the security and immutability of the Ethereum blockchain. They ensure that any transaction carried out via the protocol adheres to the set rules and conditions without any need for intermediaries.
Central to 0x's functionality is its suite of [smart contracts](../s/smart_contracts_in_trading.md), which [handle](../h/handle.md) the critical aspects of [trade](../t/trade.md) [execution](../e/execution.md). These contracts fully [leverage](../l/leverage.md) the [security](../s/security.md) and immutability of the [Ethereum](../e/ethereum_.md) [blockchain](../b/blockchain_in_trading.md). They ensure that any [transaction](../t/transaction.md) carried out via the protocol adheres to the set rules and conditions without any need for intermediaries.

### ZRX Token

The ZRX token is the utility and governance token of the 0x Protocol. Staking ZRX allows holders to earn rewards and participate in governance decisions. Additionally, ZRX can be used to pay fees to relayers and liquidity providers.
The ZRX token is the [utility](../u/utility.md) and governance token of the 0x Protocol. Staking ZRX allows holders to earn rewards and participate in governance decisions. Additionally, ZRX can be used to pay fees to relayers and [liquidity](../l/liquidity.md) providers.

## 0x API

The 0x API is an aggregation of liquidity across multiple DEXs and market makers, offering a seamless, robust, and efficient interface for developers looking to integrate trading functionalities. The API serves as a comprehensive solution for decentralized finance applications and trading platforms, providing access to varied liquidity pools with minimal slippage and competitive pricing.
The 0x API is an [aggregation](../a/aggregation.md) of [liquidity](../l/liquidity.md) across [multiple](../m/multiple.md) DEXs and [market](../m/market.md) makers, [offering](../o/offering.md) a seamless, [robust](../r/robust.md), and efficient interface for developers looking to integrate trading functionalities. The API serves as a comprehensive solution for decentralized [finance](../f/finance.md) applications and trading platforms, providing access to varied [liquidity pools](../l/liquidity_pools.md) with minimal [slippage](../s/slippage.md) and competitive pricing.

## Mesh Network

The 0x Mesh Network is a peer-to-peer network for broadcasting orders. This network allows nodes to communicate, share orders, and maintain a distributed order book. Nodes in the Mesh Network participate by either being consumers of orders or relayers of orders, thus promoting decentralization and resiliency.
The 0x Mesh Network is a peer-to-peer network for broadcasting orders. This network allows nodes to communicate, share orders, and maintain a distributed [order book](../o/order_book.md). Nodes in the Mesh Network participate by either being consumers of orders or relayers of orders, thus promoting decentralization and resiliency.

## Staking and Governance

0x incorporates a staking mechanism where ZRX holders can stake their tokens to earn a portion of protocol fees generated by the network. The staking process enhances security, incentivizes participation, and contributes to the overall health and functionality of the protocol.
0x incorporates a staking mechanism where ZRX holders can stake their tokens to earn a portion of protocol fees generated by the network. The staking process enhances [security](../s/security.md), incentivizes participation, and contributes to the overall health and functionality of the protocol.

Governance on 0x is also ZRX-based, allowing token holders to propose and vote on protocol upgrades, changes to fee structures, and other significant decisions affecting the ecosystem.
Governance on 0x is also ZRX-based, allowing token holders to propose and vote on protocol upgrades, changes to [fee](../f/fee.md) structures, and other significant decisions affecting the ecosystem.

## Use Cases and Applications

### Trading Platforms

Several trading platforms and DEXs use 0x Protocol to build their trading functionalities. These platforms benefit from 0x's robust smart contract architecture, liquidity aggregation, and flexible API.
Several trading platforms and DEXs use 0x Protocol to build their trading functionalities. These platforms benefit from 0x's [robust](../r/robust.md) smart contract architecture, [liquidity aggregation](../l/liquidity_aggregation.md), and flexible API.

### DeFi Applications

DeFi applications leverage 0x for various token-swapping and trading functionalities. By utilizing 0x's liquidity infrastructure, DeFi projects can offer competitive rates and reduce the spread between bids and asks.
DeFi applications [leverage](../l/leverage.md) 0x for various token-swapping and trading functionalities. By utilizing 0x's [liquidity](../l/liquidity.md) [infrastructure](../i/infrastructure.md), DeFi projects can [offer](../o/offer.md) competitive rates and reduce the spread between bids and asks.

### NFT Marketplaces

With its support for Ethereum tokens, 0x serves NFT marketplaces by enabling seamless trading of unique digital assets. The customizability and extensibility of 0x Protocol make it suitable for this rapidly growing industry segment.
With its support for [Ethereum](../e/ethereum_.md) tokens, 0x serves NFT marketplaces by enabling seamless trading of unique digital assets. The customizability and extensibility of 0x Protocol make it suitable for this rapidly growing [industry](../i/industry.md) segment.

## Technical Architecture

### Off-Chain Order Relay and On-Chain Settlement

0x uses an architecture known as off-chain order relay and on-chain settlement. Orders are created off-chain and only broadcast to the blockchain when a trade is executed. This hybrid approach reduces gas costs and improves transaction efficiency, two critical factors in the Ethereum environment.
0x uses an architecture known as off-chain [order](../o/order.md) relay and on-chain settlement. Orders are created off-chain and only broadcast to the [blockchain](../b/blockchain_in_trading.md) when a [trade](../t/trade.md) is executed. This hybrid approach reduces gas costs and improves [transaction](../t/transaction.md) [efficiency](../e/efficiency.md), two critical factors in the [Ethereum](../e/ethereum_.md) environment.

### Contract Architecture

The core smart contract architecture of 0x is designed to be highly modular. It includes various contracts such as:

- `Exchange.sol`: The primary contract responsible for trade settlement.
- `[Exchange](../e/exchange.md).sol`: The primary contract responsible for [trade](../t/trade.md) settlement.
- `ERC20Proxy.sol`: A contract that handles token transfers.
- `ZRXToken.sol`: The contract for the ZRX token.
- `Staking.sol`: The contract that manages ZRX staking and distribution of rewards.
- `Staking.sol`: The contract that manages ZRX staking and [distribution](../d/distribution.md) of rewards.

### Asset Swapper

An essential feature within the 0x ecosystem is the Asset Swapper, a utility that enables seamless exchange between different tokens. By utilizing liquidity aggregation and order matching, the Asset Swapper ensures that users receive the most competitive rates available.
An essential feature within the 0x ecosystem is the [Asset](../a/asset.md) Swapper, a [utility](../u/utility.md) that enables seamless [exchange](../e/exchange.md) between different tokens. By utilizing [liquidity aggregation](../l/liquidity_aggregation.md) and [order](../o/order.md) matching, the [Asset](../a/asset.md) Swapper ensures that users receive the most competitive rates available.

## Security Measures

### Audits

0x conducts regular security audits through various third-party firms specializing in blockchain and smart contract security. These audits help identify potential vulnerabilities and ensure that the protocol maintains a high security standard.
0x conducts regular [security](../s/security.md) audits through various third-party firms specializing in [blockchain](../b/blockchain_in_trading.md) and smart contract [security](../s/security.md). These audits help identify potential vulnerabilities and ensure that the protocol maintains a high [security](../s/security.md) standard.

### Bug Bounties

To incentivize the community to find and report security issues, 0x offers bug bounties. This community-driven approach further enhances the protocol's resilience against malicious attacks.
To incentivize the community to find and report [security](../s/security.md) issues, 0x offers bug bounties. This community-driven approach further enhances the protocol's resilience against malicious attacks.

### Insurance Fund

In anticipation of potential security breaches, 0x has an insurance fund that can be deployed to mitigate the impact of any adverse events. This fund acts as a safety net for users and liquidity providers.
In anticipation of potential [security](../s/security.md) breaches, 0x has an [insurance](../i/insurance.md) [fund](../f/fund.md) that can be deployed to mitigate the impact of any adverse events. This [fund](../f/fund.md) acts as a safety net for users and [liquidity](../l/liquidity.md) providers.

## Ecosystem and Partnerships

### Integration with Other Protocols

0x integrates seamlessly with various other DeFi protocols and services, enhancing its functionality and reach. Key integrations include:

- **Kyber Network:** For additional liquidity aggregation.
- **Kyber Network:** For additional [liquidity aggregation](../l/liquidity_aggregation.md).
- **Aave:** Enabling leveraged trading and lending functionalities.
- **Uniswap:** Utilizing liquidity pools for competitive rates.
- **Uniswap:** Utilizing [liquidity pools](../l/liquidity_pools.md) for competitive rates.

### Relayer Network

Numerous relayers have adopted the 0x Protocol to build their platforms and services. These relayers contribute to the overall health and liquidity of the 0x network. Examples include:
Numerous relayers have adopted the 0x Protocol to build their platforms and services. These relayers contribute to the overall health and [liquidity](../l/liquidity.md) of the 0x network. Examples include:

- **Radar Relay:** A global order book relayer.
- **Paradex:** A peer-to-peer ERC20 trading platform.
- **Radar Relay:** A global [order book](../o/order_book.md) relayer.
- **Paradex:** A peer-to-peer ERC20 [trading platform](../t/trading_platform.md).

## Conclusion

0x Protocol represents a significant advancement in the decentralized exchange landscape, offering a robust, flexible, and secure platform for Ethereum-based token trading. With its innovative architecture, focus on security, and comprehensive developer tools, 0x is set to continue its pivotal role in the ever-expanding DeFi ecosystem.
0x Protocol represents a significant advancement in the decentralized [exchange](../e/exchange.md) landscape, [offering](../o/offering.md) a [robust](../r/robust.md), flexible, and secure platform for [Ethereum](../e/ethereum_.md)-based token trading. With its innovative architecture, focus on [security](../s/security.md), and comprehensive developer tools, 0x is set to continue its pivotal role in the ever-expanding DeFi ecosystem.

For more information, visit the [official website](https://0x.org/).
Loading

0 comments on commit 1aa2b7c

Please sign in to comment.