@dahlia-labs/numoen-config
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,3 +0,5 @@ | ||
import type { IMarket } from "@dahlia-labs/numoen-utils"; | ||
export declare const markets: IMarket[]; | ||
import type { ChainsV1, IMarket } from "@dahlia-labs/numoen-utils"; | ||
export declare const markets: Readonly<{ | ||
[chain in ChainsV1]: readonly IMarket[]; | ||
}>; | ||
//# sourceMappingURL=markets.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.markets = void 0; | ||
const celo_contrib_1 = require("@dahlia-labs/celo-contrib"); | ||
const celo_tokens_1 = require("@dahlia-labs/celo-tokens"); | ||
const token_utils_1 = require("@dahlia-labs/token-utils"); | ||
const LongCelo = { | ||
token: new token_utils_1.Token({ | ||
name: "Numoen Lendgine", | ||
symbol: "CELO+", | ||
const use_ethers_1 = require("@dahlia-labs/use-ethers"); | ||
const UNI = new token_utils_1.Token({ | ||
address: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984", | ||
chainId: use_ethers_1.chainID.goerli, | ||
name: "Uniswap", | ||
symbol: "UNI", | ||
decimals: 18, | ||
}); | ||
const WETH = new token_utils_1.Token({ | ||
address: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6", | ||
chainId: use_ethers_1.chainID.goerli, | ||
name: "Wrapped Ether", | ||
symbol: "WETH", | ||
decimals: 18, | ||
}); | ||
const uniPair = { | ||
tokens: [UNI, WETH], | ||
address: "0x6D2fAf643Fe564e0204f35e38d1a1b08D9620d14", | ||
lpToken: new token_utils_1.Token({ | ||
chainId: use_ethers_1.chainID.goerli, | ||
name: "Sushiswap LP Token", | ||
symbol: "SLP", | ||
decimals: 18, | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
address: "0x24aceAE438C60DD6ba937B27345531115a099048", | ||
address: "0x6D2fAf643Fe564e0204f35e38d1a1b08D9620d14", | ||
}), | ||
address: "0x24aceAE438C60DD6ba937B27345531115a099048", | ||
pair: { | ||
speculativeToken: celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet], | ||
baseToken: celo_tokens_1.CUSD[celo_contrib_1.ChainId.Mainnet], | ||
lp: new token_utils_1.Token({ | ||
name: "Numoen LP", | ||
symbol: "NLP", | ||
decimals: 18, | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
address: "0xFD634643275d2EA018F6D13b88244ca5BB96564C", | ||
}), | ||
bound: new token_utils_1.Price(celo_tokens_1.CUSD[celo_contrib_1.ChainId.Mainnet], celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet], 1, 5), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0xFD634643275d2EA018F6D13b88244ca5BB96564C", | ||
}, | ||
referenceMarket: { | ||
address: "0x1e593f1fe7b61c53874b54ec0c59fd0d5eb8621e", | ||
tokens: [celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet], celo_tokens_1.CUSD[celo_contrib_1.ChainId.Mainnet]], | ||
lpToken: new token_utils_1.Token({ | ||
address: "0x1e593f1fe7b61c53874b54ec0c59fd0d5eb8621e", | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
symbol: "ULP", | ||
name: "Ubeswap LP", | ||
decimals: 18, | ||
}), | ||
}, | ||
}; | ||
const Mobi = { | ||
token: new token_utils_1.Token({ | ||
name: "Numoen Lendgine", | ||
symbol: "MOBI+", | ||
const pair = { | ||
speculativeToken: WETH, | ||
baseToken: UNI, | ||
lp: new token_utils_1.Token({ | ||
chainId: use_ethers_1.chainID.goerli, | ||
name: "NLP", | ||
symbol: "NLP", | ||
decimals: 18, | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
address: "0x480E0860F64FD42c0aCbB90FAD33C4Fa059e7d95", | ||
address: "0x6e2674F56B05cD7eeF55571Ff74894C3cF842f79", | ||
}), | ||
address: "0x480E0860F64FD42c0aCbB90FAD33C4Fa059e7d95", | ||
pair: { | ||
speculativeToken: celo_tokens_1.MOBI[celo_contrib_1.ChainId.Mainnet], | ||
baseToken: celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet], | ||
lp: new token_utils_1.Token({ | ||
name: "Numoen LP", | ||
symbol: "NLP", | ||
decimals: 18, | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
address: "0x3D9222F94CCf6993f62A88D59D9A5Af1A0c351e5", | ||
}), | ||
bound: new token_utils_1.Price(celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet], celo_tokens_1.MOBI[celo_contrib_1.ChainId.Mainnet], 1000, 2), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0x3D9222F94CCf6993f62A88D59D9A5Af1A0c351e5", | ||
}, | ||
referenceMarket: { | ||
address: "0x0b81cf47c8f97275d14c006e537d5101b6c87300", | ||
tokens: [celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet], celo_tokens_1.MOBI[celo_contrib_1.ChainId.Mainnet]], | ||
lpToken: new token_utils_1.Token({ | ||
address: "0x0b81cf47c8f97275d14c006e537d5101b6c87300", | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
name: "Ubeswap LP", | ||
symbol: "ULP", | ||
decimals: 18, | ||
}), | ||
}, | ||
bound: new token_utils_1.Price(WETH, UNI, 1, 5), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0x6e2674F56B05cD7eeF55571Ff74894C3cF842f79", | ||
}; | ||
const Ube = { | ||
const market = { | ||
pair, | ||
referenceMarket: uniPair, | ||
address: "0xA2d94F41FfF0c97EB7c7f8c63AB8dc8fc22d3db2", | ||
token: new token_utils_1.Token({ | ||
name: "Numoen Lendgine", | ||
symbol: "UBE+", | ||
address: "0xA2d94F41FfF0c97EB7c7f8c63AB8dc8fc22d3db2", | ||
name: "UNI-", | ||
symbol: "UNI-", | ||
decimals: 18, | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
address: "0xd89F5fd3F6df3FD68Ca7604566DE25c2C3Dd5EAd", | ||
chainId: use_ethers_1.chainID.goerli, | ||
}), | ||
address: "0xd89F5fd3F6df3FD68Ca7604566DE25c2C3Dd5EAd", | ||
pair: { | ||
speculativeToken: celo_tokens_1.UBE[celo_contrib_1.ChainId.Mainnet], | ||
baseToken: celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet], | ||
lp: new token_utils_1.Token({ | ||
name: "Numoen LP", | ||
symbol: "NLP", | ||
decimals: 18, | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
address: "0x89AE09FBe40Dc4436c0F1D3dde0d50cC6d000D97", | ||
}), | ||
bound: new token_utils_1.Price(celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet], celo_tokens_1.UBE[celo_contrib_1.ChainId.Mainnet], 10, 2), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0x89AE09FBe40Dc4436c0F1D3dde0d50cC6d000D97", | ||
}, | ||
referenceMarket: { | ||
address: "0xe7b5ad135fa22678f426a381c7748f6a5f2c9e6c", | ||
tokens: [celo_tokens_1.UBE[celo_contrib_1.ChainId.Mainnet], celo_tokens_1.CELO[celo_contrib_1.ChainId.Mainnet]], | ||
lpToken: new token_utils_1.Token({ | ||
address: "0xe7b5ad135fa22678f426a381c7748f6a5f2c9e6c", | ||
chainId: celo_contrib_1.ChainId.Mainnet, | ||
name: "Ubeswap LP", | ||
symbol: "ULP", | ||
decimals: 18, | ||
}), | ||
}, | ||
}; | ||
exports.markets = [LongCelo, Mobi, Ube]; | ||
exports.markets = { | ||
goerli: [market], | ||
}; | ||
//# sourceMappingURL=markets.js.map |
{ | ||
"name": "@dahlia-labs/numoen-config", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Configuration for the Numoen app", | ||
@@ -16,3 +16,3 @@ "repository": { | ||
"license": "AGPL-3.0", | ||
"packageManager": "yarn@3.2.3", | ||
"packageManager": "yarn@3.3.0", | ||
"devDependencies": { | ||
@@ -33,3 +33,3 @@ "@rushstack/eslint-patch": "^1.2.0", | ||
"husky": "^8.0.2", | ||
"lint-staged": "^13.0.3", | ||
"lint-staged": "^13.0.4", | ||
"prettier": "^2.8.0", | ||
@@ -48,6 +48,8 @@ "ts-node": "10.9.1", | ||
"dependencies": { | ||
"@dahlia-labs/celo-contrib": "^0.9.3", | ||
"@dahlia-labs/celo-tokens": "^0.9.3", | ||
"@dahlia-labs/numoen-utils": "^0.9.3", | ||
"@dahlia-labs/token-utils": "^0.9.3", | ||
"@dahlia-labs/celo-contrib": "^0.9.5", | ||
"@dahlia-labs/celo-tokens": "^0.9.5", | ||
"@dahlia-labs/numoen-utils": "^0.9.5", | ||
"@dahlia-labs/token-utils": "^0.9.5", | ||
"@dahlia-labs/uniswapv2-utils": "^0.9.5", | ||
"@dahlia-labs/use-ethers": "^0.9.5", | ||
"@ethersproject/abi": "^5.7.0", | ||
@@ -54,0 +56,0 @@ "@ethersproject/address": "^5.7.0", |
@@ -1,125 +0,67 @@ | ||
import { ChainId } from "@dahlia-labs/celo-contrib"; | ||
import { CELO, CUSD, MOBI, UBE } from "@dahlia-labs/celo-tokens"; | ||
import type { IMarket } from "@dahlia-labs/numoen-utils"; | ||
import type { ChainsV1, IMarket, IPair } from "@dahlia-labs/numoen-utils"; | ||
import { Price, Token } from "@dahlia-labs/token-utils"; | ||
import type { IUniswapV2Pair } from "@dahlia-labs/uniswapv2-utils"; | ||
import { chainID } from "@dahlia-labs/use-ethers"; | ||
const LongCelo: IMarket = { | ||
token: new Token({ | ||
name: "Numoen Lendgine", | ||
symbol: "CELO+", | ||
const UNI = new Token({ | ||
address: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984", | ||
chainId: chainID.goerli, | ||
name: "Uniswap", | ||
symbol: "UNI", | ||
decimals: 18, | ||
}); | ||
const WETH = new Token({ | ||
address: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6", | ||
chainId: chainID.goerli, | ||
name: "Wrapped Ether", | ||
symbol: "WETH", | ||
decimals: 18, | ||
}); | ||
const uniPair: IUniswapV2Pair = { | ||
tokens: [UNI, WETH], | ||
address: "0x6D2fAf643Fe564e0204f35e38d1a1b08D9620d14", | ||
lpToken: new Token({ | ||
chainId: chainID.goerli, | ||
name: "Sushiswap LP Token", | ||
symbol: "SLP", | ||
decimals: 18, | ||
chainId: ChainId.Mainnet, | ||
address: "0x24aceAE438C60DD6ba937B27345531115a099048", | ||
address: "0x6D2fAf643Fe564e0204f35e38d1a1b08D9620d14", | ||
}), | ||
} as const; | ||
address: "0x24aceAE438C60DD6ba937B27345531115a099048", | ||
pair: { | ||
speculativeToken: CELO[ChainId.Mainnet], | ||
baseToken: CUSD[ChainId.Mainnet], | ||
const pair: IPair = { | ||
speculativeToken: WETH, | ||
baseToken: UNI, | ||
lp: new Token({ | ||
name: "Numoen LP", | ||
symbol: "NLP", | ||
decimals: 18, | ||
chainId: ChainId.Mainnet, | ||
address: "0xFD634643275d2EA018F6D13b88244ca5BB96564C", | ||
}), | ||
bound: new Price(CUSD[ChainId.Mainnet], CELO[ChainId.Mainnet], 1, 5), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0xFD634643275d2EA018F6D13b88244ca5BB96564C", | ||
}, | ||
referenceMarket: { | ||
address: "0x1e593f1fe7b61c53874b54ec0c59fd0d5eb8621e", | ||
tokens: [CELO[ChainId.Mainnet], CUSD[ChainId.Mainnet]], | ||
lpToken: new Token({ | ||
address: "0x1e593f1fe7b61c53874b54ec0c59fd0d5eb8621e", | ||
chainId: ChainId.Mainnet, | ||
symbol: "ULP", | ||
name: "Ubeswap LP", | ||
decimals: 18, | ||
}), | ||
}, | ||
}; | ||
const Mobi: IMarket = { | ||
token: new Token({ | ||
name: "Numoen Lendgine", | ||
symbol: "MOBI+", | ||
lp: new Token({ | ||
chainId: chainID.goerli, | ||
name: "NLP", | ||
symbol: "NLP", | ||
decimals: 18, | ||
chainId: ChainId.Mainnet, | ||
address: "0x480E0860F64FD42c0aCbB90FAD33C4Fa059e7d95", | ||
address: "0x6e2674F56B05cD7eeF55571Ff74894C3cF842f79", | ||
}), | ||
address: "0x480E0860F64FD42c0aCbB90FAD33C4Fa059e7d95", | ||
pair: { | ||
speculativeToken: MOBI[ChainId.Mainnet], | ||
baseToken: CELO[ChainId.Mainnet], | ||
bound: new Price(WETH, UNI, 1, 5), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0x6e2674F56B05cD7eeF55571Ff74894C3cF842f79", | ||
} as const; | ||
lp: new Token({ | ||
name: "Numoen LP", | ||
symbol: "NLP", | ||
decimals: 18, | ||
chainId: ChainId.Mainnet, | ||
address: "0x3D9222F94CCf6993f62A88D59D9A5Af1A0c351e5", | ||
}), | ||
bound: new Price(CELO[ChainId.Mainnet], MOBI[ChainId.Mainnet], 1000, 2), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0x3D9222F94CCf6993f62A88D59D9A5Af1A0c351e5", | ||
}, | ||
referenceMarket: { | ||
address: "0x0b81cf47c8f97275d14c006e537d5101b6c87300", | ||
tokens: [CELO[ChainId.Mainnet], MOBI[ChainId.Mainnet]], | ||
lpToken: new Token({ | ||
address: "0x0b81cf47c8f97275d14c006e537d5101b6c87300", | ||
chainId: ChainId.Mainnet, | ||
name: "Ubeswap LP", | ||
symbol: "ULP", | ||
decimals: 18, | ||
}), | ||
}, | ||
}; | ||
const Ube: IMarket = { | ||
const market: IMarket = { | ||
pair, | ||
referenceMarket: uniPair, | ||
address: "0xA2d94F41FfF0c97EB7c7f8c63AB8dc8fc22d3db2", | ||
token: new Token({ | ||
name: "Numoen Lendgine", | ||
symbol: "UBE+", | ||
address: "0xA2d94F41FfF0c97EB7c7f8c63AB8dc8fc22d3db2", | ||
name: "UNI-", | ||
symbol: "UNI-", | ||
decimals: 18, | ||
chainId: ChainId.Mainnet, | ||
address: "0xd89F5fd3F6df3FD68Ca7604566DE25c2C3Dd5EAd", | ||
chainId: chainID.goerli, | ||
}), | ||
address: "0xd89F5fd3F6df3FD68Ca7604566DE25c2C3Dd5EAd", | ||
pair: { | ||
speculativeToken: UBE[ChainId.Mainnet], | ||
baseToken: CELO[ChainId.Mainnet], | ||
} as const; | ||
lp: new Token({ | ||
name: "Numoen LP", | ||
symbol: "NLP", | ||
decimals: 18, | ||
chainId: ChainId.Mainnet, | ||
address: "0x89AE09FBe40Dc4436c0F1D3dde0d50cC6d000D97", | ||
}), | ||
bound: new Price(CELO[ChainId.Mainnet], UBE[ChainId.Mainnet], 10, 2), | ||
baseScaleFactor: 18, | ||
speculativeScaleFactor: 18, | ||
address: "0x89AE09FBe40Dc4436c0F1D3dde0d50cC6d000D97", | ||
}, | ||
referenceMarket: { | ||
address: "0xe7b5ad135fa22678f426a381c7748f6a5f2c9e6c", | ||
tokens: [UBE[ChainId.Mainnet], CELO[ChainId.Mainnet]], | ||
lpToken: new Token({ | ||
address: "0xe7b5ad135fa22678f426a381c7748f6a5f2c9e6c", | ||
chainId: ChainId.Mainnet, | ||
name: "Ubeswap LP", | ||
symbol: "ULP", | ||
decimals: 18, | ||
}), | ||
}, | ||
}; | ||
export const markets: IMarket[] = [LongCelo, Mobi, Ube]; | ||
export const markets: Readonly<{ [chain in ChainsV1]: readonly IMarket[] }> = { | ||
goerli: [market], | ||
} as const; |
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
56537
16
245