Skip to content

Commit

Permalink
SOV-2389: DLLR margin trading (#2538)
Browse files Browse the repository at this point in the history
* feat: RBTC/DLLR margin trading

* feat: add bpro and sov for dllr margin trades

* chore: leave only DLLR/RBTC for DLLR trading

* feat: enable both short and long trades

* chore: change testnet settlement contract

* fix: remove faulty rpc

* fix: update BTCWrapperProxy address

---------

Co-authored-by: Peiman <[email protected]>
Co-authored-by: Peiman <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2023
1 parent dd55334 commit 8eeb948
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/blockchain/contracts.testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const contracts = {
abi: OrderBookMarginAbi,
},
settlement: {
address: '0x4dfb9ab1653Eb5A295109E02e37fc222D85fdA74',
address: '0x8bf75a88e7af8a7adf44d69e93efaf283a235e0c',
abi: SettlementAbi,
},
sovrynNFT: {
Expand Down
6 changes: 1 addition & 5 deletions src/utils/classifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ export const blockExplorers = {

export const rpcNodes = {
30: ['https://rsk-live.sovryn.app/rpc', 'https://public-node.rsk.co/'],
31: [
'https://testnet.sovryn.app/rpc',
'https://testnet2.sovryn.app/rpc',
'https://public-node.testnet.rsk.co/',
],
31: ['https://testnet.sovryn.app/rpc', 'https://public-node.testnet.rsk.co/'],
56: 'wss://bsc.sovryn.app/mainnet/websocket',
97: 'wss://bsc.sovryn.app/testnet/websocket',
};
Expand Down
16 changes: 16 additions & 0 deletions src/utils/dictionaries/trading-pair-dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum TradingPairType {
RBTC_XUSD = 'RBTC_XUSD',
RBTC_DOC = 'RBTC_DOC',
RBTC_USDT = 'RBTC_USDT',
RBTC_DLLR = 'RBTC_DLLR',
BPRO_XUSD = 'BPRO_XUSD',
BPRO_USDT = 'BPRO_USDT',
BPRO_DOC = 'BPRO_DOC',
Expand All @@ -31,6 +32,7 @@ export const pairs = {
[TradingPairType.RBTC_USDT]: [Asset.RBTC, Asset.USDT],
[TradingPairType.RBTC_DOC]: [Asset.RBTC, Asset.DOC],
[TradingPairType.RBTC_XUSD]: [Asset.RBTC, Asset.XUSD],
[TradingPairType.RBTC_DLLR]: [Asset.RBTC, Asset.DLLR],
// @dev testnet only pairs
[TradingPairType.RBTC_XUSD_legacy]: [Asset.RBTC, Asset.XUSD_legacy],
[TradingPairType.BPRO_XUSD_legacy]: [Asset.BPRO, Asset.XUSD_legacy],
Expand Down Expand Up @@ -81,6 +83,20 @@ export class TradingPairDictionary {
false,
),
],
[
TradingPairType.RBTC_DLLR,
new TradingPair(
TradingPairType.RBTC_DLLR,
RenderTradingPairName({ asset1: Asset.RBTC, asset2: Asset.DLLR }),
'RBTC/DLLR',
Asset.DLLR,
Asset.RBTC,
[Asset.RBTC, Asset.DLLR],
false,
true,
true,
),
],
[
TradingPairType.SOV_RBTC,
new TradingPair(
Expand Down

0 comments on commit 8eeb948

Please sign in to comment.