Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sip-2023-xmr-perps-v2 #1611

Merged
merged 3 commits into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions content/sips/sip-2023.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
sip: 2023
title: Add XMR to Perps V2
network: Optimism
status: Vote_Pending
type: Governance
author: GUNBOATs (@gunboatsss)
implementor: TBD
implementation-date:
created: 2023-06-27
---

<!--You can leave these HTML comments in your merged SIP and delete the visible duplicate text guides, they will not appear and may be helpful to refer to if you edit it again. This is the suggested template for new SIPs. Note that an SIP number will be assigned by an editor. When opening a pull request to submit your SIP, please use an abbreviated title in the filename, `sip-draft_title_abbrev.md`. The title should be 44 characters or less.-->



## Simple Summary

<!--"If you can't explain it simply, you don't understand it well enough." Simply describe the outcome the proposed changes intends to achieve. This should be non-technical and accessible to a casual community member.-->

Add Monero (XMR) as markets under Perps V2

## Abstract

<!--A short (~200 word) description of the proposed change, the abstract should clearly describe the proposed change. This is what *will* be done if the SIP is implemented, not *why* it should be done or *how* it will be done. If the SIP proposes deploying a new contract, write, "we propose to deploy a new contract that will do x".-->

This is proposal to offer XMR futures which tracks the price of respective cryptocurrency.

## Motivation

<!--This is the problem statement. This is the *why* of the SIP. It should clearly explain *why* the current state of the protocol is inadequate. It is critical that you explain *why* the change is needed, if the SIP proposes changing how something is calculated, you must address *why* the current calculation is innaccurate or wrong. This is not the place to describe how the SIP will address the issue!-->

Adding XMR allows Synthetix to offers more assets for onboarding more traders. XMR is also was on Synthetix Futures which is the last market to be list from legacy futures.

## Specification

<!--The specification should describe the syntax and semantics of any new feature, there are five sections
1. Overview
2. Rationale
3. Technical Specification
4. Test Cases
5. Configurable Values
-->
Data was obtained on June 27 via Coingecko from following exchange: Binance, OKX, dYdX, Phermex, Kucoin and Huobi.


| Exchange | Symbol | Open Interest | 24h Volume |
|---------------------|----------------|----------------|-----------------|
| Binance (Futures) | XMRUSD_PERP | $39,783,330 | $2,231,402.33 |
| Binance (Futures) | XMRUSDT | $16,898,321 | $60,932,267.71 |
| Bybit (Futures) | XMRUSDT | $5,701,295 | $4,333,113.81 |
| KuCoin Futures | XMRUSDTM | $4,531,294 | $1,455,083.15 |
| OKX (Futures) | XMR-USDT-SWAP | $3,584,726 | $9,998,619.23 |
| dYdX Perpetual | XMR-USD | $825,488 | $3,997,951.33 |
| Phemex (Futures) | XMR-PERPUSDT | $499,837 | $11,961,223.90 |
| Huobi Futures | XMR-USDT | $96,058 | $238,617.42 |


### Rationale

<!--This is where you explain the reasoning behind how you propose to solve the problem. Why did you propose to implement the change in this way, what were the considerations and trade-offs. The rationale fleshes out what motivated the design and why particular design decisions were made. It should describe alternate designs that were considered and related work. The rationale may also provide evidence of consensus within the community, and should discuss important objections or concerns raised during discussion.-->

- Monero was on Synthetix Futures
- Top 25 coin on Coingecko
- Non-etherum token that trader can't get exposure from on Optimism

### Technical Specification

<!--The technical specification should outline the public API of the changes proposed. That is, changes to any of the interfaces Synthetix currently exposes or the creations of new ones.-->

Implementation requires implementing off-chain oracle price feeds from Pyth Network and backup on-chain oracles from Chainlink.

Configurable values (read below) will be set in a subsequent SCCP for each market.

### Test Cases

<!--Test cases for an implementation are mandatory for SIPs but can be included with the implementation..-->

N/A

### Configurable Values (Via SCCP)

<!--Please list all values configurable via SCCP under this implementation.-->

All Perps V2 configurable values will be set in subsequent SCCPS for each market.

"makerFee": "",
"takerFee": "",
"takerFeeDelayedOrder": "",
"makerFeeDelayedOrder": "",
"takerFeeOffchainDelayedOrder": "",
"makerFeeOffchainDelayedOrder": "",
"maxLeverage": "",
"maxMarketValue": "",
"maxFundingVelocity": "",
"skewScale": "",

"nextPriceConfirmWindow": "",
"delayedOrderConfirmWindow": "",
"minDelayTimeDelta": "",
"maxDelayTimeDelta": "",
"offchainDelayedOrderMinAge": "",
"offchainDelayedOrderMaxAge": "",
"offchainPriceDivergence": "",

## Copyright

Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).