@dahlia-labs/numoen-config
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -7,9 +7,9 @@ "use strict"; | ||
const imageRegistry = "https://raw.githubusercontent.com/Numoen/config/master/src/images/"; | ||
const USDC = new token_utils_1.Token({ | ||
address: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", | ||
const DPX = new token_utils_1.Token({ | ||
address: "0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55", | ||
chainId: use_ethers_1.chainID.arbitrum, | ||
name: "USD Coin", | ||
symbol: "USDC", | ||
decimals: 6, | ||
logoURI: imageRegistry.concat("usdc.jpg"), | ||
name: "Dopex Token", | ||
symbol: "DPX", | ||
decimals: 18, | ||
logoURI: imageRegistry.concat("dpx.jpg"), | ||
}); | ||
@@ -25,4 +25,4 @@ exports.WETH = new token_utils_1.Token({ | ||
const uniPair = { | ||
tokens: [exports.WETH, USDC], | ||
address: "0x905dfCD5649217c42684f23958568e533C711Aa3", | ||
tokens: [DPX, exports.WETH], | ||
address: "0x0C1Cf6883efA1B496B01f654E247B9b419873054", | ||
lpToken: new token_utils_1.Token({ | ||
@@ -33,8 +33,8 @@ chainId: use_ethers_1.chainID.arbitrum, | ||
decimals: 18, | ||
address: "0x905dfCD5649217c42684f23958568e533C711Aa3", | ||
address: "0x0C1Cf6883efA1B496B01f654E247B9b419873054", | ||
}), | ||
}; | ||
const pair = { | ||
speculativeToken: exports.WETH, | ||
baseToken: USDC, | ||
speculativeToken: DPX, | ||
baseToken: exports.WETH, | ||
lp: new token_utils_1.Token({ | ||
@@ -45,8 +45,8 @@ chainId: use_ethers_1.chainID.arbitrum, | ||
decimals: 18, | ||
address: "0xfc60d2197CaDbd93AF223B5B1C3790B80C84c3E7", | ||
address: "0x9cc2b5d316CFE4334d4973f977c1E8d31E7A6D35", | ||
}), | ||
bound: new token_utils_1.Price(exports.WETH, USDC, 1000, 3), | ||
baseScaleFactor: 12, | ||
bound: new token_utils_1.Price(DPX, exports.WETH, 10, 8), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0xfc60d2197CaDbd93AF223B5B1C3790B80C84c3E7", | ||
address: "0x9cc2b5d316CFE4334d4973f977c1E8d31E7A6D35", | ||
}; | ||
@@ -56,7 +56,7 @@ exports.market = { | ||
referenceMarket: uniPair, | ||
address: "0xF3cdFBE111791D39004Af457Aa8E924F1e9898b0", | ||
address: "0x77466a50aCC5F06BD8eAA1381acDecC0720B6322", | ||
token: new token_utils_1.Token({ | ||
address: "0xF3cdFBE111791D39004Af457Aa8E924F1e9898b0", | ||
name: "ETH+", | ||
symbol: "ETH+", | ||
address: "0x77466a50aCC5F06BD8eAA1381acDecC0720B6322", | ||
name: "DPX+", | ||
symbol: "DPX+", | ||
decimals: 18, | ||
@@ -63,0 +63,0 @@ chainId: use_ethers_1.chainID.arbitrum, |
import { Price, Token } from "@dahlia-labs/token-utils"; | ||
import { chainID } from "@dahlia-labs/use-ethers"; | ||
const imageRegistry = "https://raw.githubusercontent.com/Numoen/config/master/src/images/"; | ||
const USDC = new Token({ | ||
address: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", | ||
const DPX = new Token({ | ||
address: "0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55", | ||
chainId: chainID.arbitrum, | ||
name: "USD Coin", | ||
symbol: "USDC", | ||
decimals: 6, | ||
logoURI: imageRegistry.concat("usdc.jpg"), | ||
name: "Dopex Token", | ||
symbol: "DPX", | ||
decimals: 18, | ||
logoURI: imageRegistry.concat("dpx.jpg"), | ||
}); | ||
@@ -21,4 +21,4 @@ export const WETH = new Token({ | ||
const uniPair = { | ||
tokens: [WETH, USDC], | ||
address: "0x905dfCD5649217c42684f23958568e533C711Aa3", | ||
tokens: [DPX, WETH], | ||
address: "0x0C1Cf6883efA1B496B01f654E247B9b419873054", | ||
lpToken: new Token({ | ||
@@ -29,8 +29,8 @@ chainId: chainID.arbitrum, | ||
decimals: 18, | ||
address: "0x905dfCD5649217c42684f23958568e533C711Aa3", | ||
address: "0x0C1Cf6883efA1B496B01f654E247B9b419873054", | ||
}), | ||
}; | ||
const pair = { | ||
speculativeToken: WETH, | ||
baseToken: USDC, | ||
speculativeToken: DPX, | ||
baseToken: WETH, | ||
lp: new Token({ | ||
@@ -41,8 +41,8 @@ chainId: chainID.arbitrum, | ||
decimals: 18, | ||
address: "0xfc60d2197CaDbd93AF223B5B1C3790B80C84c3E7", | ||
address: "0x9cc2b5d316CFE4334d4973f977c1E8d31E7A6D35", | ||
}), | ||
bound: new Price(WETH, USDC, 1000, 3), | ||
baseScaleFactor: 12, | ||
bound: new Price(DPX, WETH, 10, 8), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0xfc60d2197CaDbd93AF223B5B1C3790B80C84c3E7", | ||
address: "0x9cc2b5d316CFE4334d4973f977c1E8d31E7A6D35", | ||
}; | ||
@@ -52,7 +52,7 @@ export const market = { | ||
referenceMarket: uniPair, | ||
address: "0xF3cdFBE111791D39004Af457Aa8E924F1e9898b0", | ||
address: "0x77466a50aCC5F06BD8eAA1381acDecC0720B6322", | ||
token: new Token({ | ||
address: "0xF3cdFBE111791D39004Af457Aa8E924F1e9898b0", | ||
name: "ETH+", | ||
symbol: "ETH+", | ||
address: "0x77466a50aCC5F06BD8eAA1381acDecC0720B6322", | ||
name: "DPX+", | ||
symbol: "DPX+", | ||
decimals: 18, | ||
@@ -59,0 +59,0 @@ chainId: chainID.arbitrum, |
{ | ||
"name": "@dahlia-labs/numoen-config", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Configuration for the Numoen app", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -9,9 +9,9 @@ import type { IMarket, IPair } from "@dahlia-labs/numoen-utils"; | ||
const USDC = new Token({ | ||
address: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", | ||
const DPX = new Token({ | ||
address: "0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55", | ||
chainId: chainID.arbitrum, | ||
name: "USD Coin", | ||
symbol: "USDC", | ||
decimals: 6, | ||
logoURI: imageRegistry.concat("usdc.jpg"), | ||
name: "Dopex Token", | ||
symbol: "DPX", | ||
decimals: 18, | ||
logoURI: imageRegistry.concat("dpx.jpg"), | ||
}); | ||
@@ -29,4 +29,4 @@ | ||
const uniPair: IUniswapV2Pair = { | ||
tokens: [WETH, USDC], | ||
address: "0x905dfCD5649217c42684f23958568e533C711Aa3", | ||
tokens: [DPX, WETH], | ||
address: "0x0C1Cf6883efA1B496B01f654E247B9b419873054", | ||
lpToken: new Token({ | ||
@@ -37,3 +37,3 @@ chainId: chainID.arbitrum, | ||
decimals: 18, | ||
address: "0x905dfCD5649217c42684f23958568e533C711Aa3", | ||
address: "0x0C1Cf6883efA1B496B01f654E247B9b419873054", | ||
}), | ||
@@ -43,4 +43,4 @@ } as const; | ||
const pair: IPair = { | ||
speculativeToken: WETH, | ||
baseToken: USDC, | ||
speculativeToken: DPX, | ||
baseToken: WETH, | ||
@@ -52,9 +52,9 @@ lp: new Token({ | ||
decimals: 18, | ||
address: "0xfc60d2197CaDbd93AF223B5B1C3790B80C84c3E7", | ||
address: "0x9cc2b5d316CFE4334d4973f977c1E8d31E7A6D35", | ||
}), | ||
bound: new Price(WETH, USDC, 1000, 3), | ||
baseScaleFactor: 12, | ||
bound: new Price(DPX, WETH, 10, 8), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0xfc60d2197CaDbd93AF223B5B1C3790B80C84c3E7", | ||
address: "0x9cc2b5d316CFE4334d4973f977c1E8d31E7A6D35", | ||
} as const; | ||
@@ -65,7 +65,7 @@ | ||
referenceMarket: uniPair, | ||
address: "0xF3cdFBE111791D39004Af457Aa8E924F1e9898b0", | ||
address: "0x77466a50aCC5F06BD8eAA1381acDecC0720B6322", | ||
token: new Token({ | ||
address: "0xF3cdFBE111791D39004Af457Aa8E924F1e9898b0", | ||
name: "ETH+", | ||
symbol: "ETH+", | ||
address: "0x77466a50aCC5F06BD8eAA1381acDecC0720B6322", | ||
name: "DPX+", | ||
symbol: "DPX+", | ||
decimals: 18, | ||
@@ -72,0 +72,0 @@ chainId: chainID.arbitrum, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136511
43