Comment on page
The Onomy Exchange (ONEX) is a cross-chain and multi-chain hybrid decentralized exchange (DEX), with a technical architecture that converges Automated Market Maker (AMM) liquidity pools with an orderbook UI, thus creating a powerful, fair, and non-custodial approach to trading that supports stop losses, limit orders, conditional orders and advanced charting. It's the CEX experience, on-chain.
ONEX is a flagship consumer appchain of the Onomy Network. Features include trading, liquidity provision, leaderboards, using platform revenue to effectuate a buy and burn on NOM, and more.
STATUS: The Onomy Exchange has been deployed as a consumer chain to the Onomy Network on a testnet. A test interface exists for DAO member engagement and testing purposes. DAO Contributors may create their own interfaces to ONEX. A leading interface supported by major DAO contributors may be viewed, along with its progress, in the Onomy DAO forum and social channels.
This section explains how users can place trades on ONEX by selecting a trading pair and then choosing the base to determine the direction of the trade.
- Definition: A trading pair consists of two cryptocurrencies, such as NOM/OSMO.
- Example: Choosing the NOM/OSMO pair.
- Definition: The Base determines the direction of the trade.
- Example 1 (NOM/OSMO): Selecting NOM as the base, OSMO gets quoted in price calculations, and the user is using OSMO to buy NOM.
- Example 2 (OSMO/NOM): Selecting OSMO as the base, NOM gets quoted in price calculations, and the user is using NOM to buy OSMO.
- "Select Base" Dropdown: This option allows users to choose the base of the selected pair.
This section covers the creation and management of liquidity pools for a given pair. Liquidity providers (LPs) are provided shares of the pool known as drops that correspond to the LP’s share of the overall pool liquidity. Functions in the Farm section of ONEX include the ability to create new pools, manage drops in existing pools, and redeem your drops.
The breakdown of pool rewards are as follows:
- 80% of pool rewards go toward Liquidity Providers
- 10% of pool rewards go toward the Buy and Burn
- 10% of pool rewards go toward boosted rewards for Liquidity Provider Leaders
Pool Rewards are calculated as the current value of total drops minus the initial deposit value - further explanation here (link to Rewards Calculation).
- Users can create liquidity pools by selecting two tokens and depositing any amount for each of the two tokens. The ratio of the two token amounts during pool creation determines the initial AMM price. The pool allows other users to trade between these two tokens, and the creator receives drops, representing their share of the total pool liquidity for the given pair. A new pool will initially be wholly owned by its creator until more liquidity is added by new LPs who receive additional drops.
- Adding Liquidity: Users can add liquidity by depositing both tokens in the selected ratio. They receive drops in return, representing their share of the pool.
- Removing Liquidity / Redeeming Drops: Users can remove liquidity by redeeming their drops. They receive both pair tokens corresponding to the drops, plus a share of the trading fees accumulated since they added liquidity that are paid as LP Rewards in the same ratio as the pool balances. Drops can be redeemed at any time for the corresponding share of the liquidity pool. The redemption process involves submitting a transaction specifying the drops to redeem and receiving the corresponding tokens in return.
This section explains how leaders are selected among Liquidity Providers (LPs) and the boosted rewards for the top 3 LPs for any given pair liquidity pool. Both the boosted reward amount and the number of top LPs that share in the boosted rewards are configurable and votable via DAO governance.
Leaders are selected based on the total liquidity provided metric per individual pool. In other words, the leaderboard ranks all LPs based on the % of drops (shares) they own out of the total liquidity pool for a given pair. Over time, the DAO may implement metrics such as consistency and duration.
Leaderboard rewards are currently configured as follows:
- 1st Place: Additional 5% of the total rewards pool
- 2nd Place: Additional 3% of the total rewards pool
- 3rd Place: Additional 2% of the total rewards pool
- Balances: Users can view and manage token balances in their Wallet Account and Exchange Account
- Wallet Account: Consists of assets from the connected wallet that have not been deposited to the ONEX exchange module
- Exchange Account: Consists of assets that have been deposited into the ONEX exchange module
- Users can move assets to and from their Exchange Account and Wallet Account by utilizing the Transfer function. Assets must be in the Exchange Account for use with ONEX. For assets to be available for purposes outside of ONEX, a user must ensure their assets are transferred back into the Wallet Account.
This section explains the ONEX buy and burn mechanism, including rewards calculation, percentage utilization, and the burn process. This mechanism applies to Onomy’s native coin, NOM.
- Rewards for liquidity pools are calculated as the current value of the drops (shares of liquidity) minus the initial deposit value. Whenever drops from any pool on ONEX are redeemed, the respective rewards are distributed to the Liquidity Providers (80%). The remaining rewards are sent to the Liquidity Provider Leaders of their respective pools (10%) and the programmatic buy and burn mechanism (10%) on a per-trade basis rather than on drop redemption.
- Along with the other distributions, the distribution to the buy and burn mechanism is completed with the same assets that the rewards are generated in. For example, this means that if the AMM fills a trade on the ETH/USDT pair on ONEX, then 10% of the rewards geneated would be distributed to the buy and burn mechanism in ETH and USDT.
- Using the received assets from the redeemed drops, market orders are placed on pairs with NOM to buy NOM tokens on ONEX. Following our example, the ETH would be used to enter market buys of NOM on the NOM/ETH pair and the USDT would be used to enter market buys of NOM on the NOM/USDT pair.
- The purchased NOM are then programmatically destroyed via the
`Burn`coins function of the SDK.
- If a pair does not yet exist between NOM and the asset distributed from the AMM for the buy and burn mechanism, then the funds remain in the exchange module address until the pair is created.
- Once the missing pair is created, the buy and burn mechanism will be triggered upon any trade on that pair.