From c8226cf13da3a5612e8e4f7575a9e766eb588015 Mon Sep 17 00:00:00 2001 From: Hyungsuk Kang Date: Tue, 13 Aug 2024 13:24:52 +0900 Subject: [PATCH] add fraxtal and metal --- src/buildList.js | 45 +++++--- src/pairs/fraxtal.json | 152 ++++++++++++++-------------- src/scripts/generateDefaultPairs.js | 2 +- src/tokens/fraxtal.json | 66 ++++++------ 4 files changed, 141 insertions(+), 124 deletions(-) diff --git a/src/buildList.js b/src/buildList.js index 4134ba92..61372785 100644 --- a/src/buildList.js +++ b/src/buildList.js @@ -66,9 +66,9 @@ module.exports = function buildList() { }, Fraxtal: { chainId: 252, - address: "0xFC00000000000000000000000000000000000006", - name: "Frax Ether", - symbol: "FRXETH", + address: "0x4200000000000000000000000000000000000006", + name: "Ether", + symbol: "ETH", decimals: 18, logoURI: "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284", @@ -151,13 +151,14 @@ module.exports = function buildList() { "decimals": 18, "logoURI": "https://assets.coingecko.com/coins/images/13422/small/frax_logo.png?1608476506" }, - "quote": { - "chainId": 252, - "address": "0xFC00000000000000000000000000000000000006", - "name": "Frax Ether", - "symbol": "FRXETH", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284" + "quote": { + chainId: 252, + address: "0x4200000000000000000000000000000000000006", + name: "Ether", + symbol: "ETH", + decimals: 18, + logoURI: + "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284", } }, Metal: { @@ -188,17 +189,25 @@ module.exports = function buildList() { }, matchingEngine: { Base: { - address: "0x808D8b45B310646c7e1752C7bc3C68581533FfaA", - startBlock: 18293005, + address: "0xE0892785D00F192110A05282387fBAC21b942Aad", + startBlock: 18359658, }, Kroma: { address: "0x64aa8360dcb9CA4c641D7118ccEd9B56D7546Ca8", startBlock: 14747553, }, "Morph Holesky": { - address: "0x738339C9d3EaEb0e6FD552Ec4Aba18bB6BD94B40", - startBlock: 5960170, + address: "0x2D25464C8C044b9Ab122076BE55E353fA1F9bd29", + startBlock: 14814243, + }, + "Fraxtal": { + address: "0xd7ABA1cbAd246249be6a0de9a449FB5EDEFf1E47", + startBlock: 8354873, }, + "Metal": { + address: "0xd7ABA1cbAd246249be6a0de9a449FB5EDEFf1E47", + startBlock: 5979301, + } }, stndxp: { Base: { @@ -213,6 +222,14 @@ module.exports = function buildList() { address: "0xEA98008F20e06636470b6a3C7ddA9caE63B668EC", startBlock: 5389919, }, + "Fraxtal": { + address: "0xEA98008F20e06636470b6a3C7ddA9caE63B668EC", + startBlock: 5389919, + }, + "Metal": { + address: "0xEA98008F20e06636470b6a3C7ddA9caE63B668EC", + startBlock: 5389919, + } }, tags: {}, logoURI: "https://avatars.githubusercontent.com/u/73440097?s=200&v=4", diff --git a/src/pairs/fraxtal.json b/src/pairs/fraxtal.json index df9351b1..14ab76ad 100644 --- a/src/pairs/fraxtal.json +++ b/src/pairs/fraxtal.json @@ -1,80 +1,80 @@ [ - { - "base": { - "chainId": 252, - "address": "0xFc00000000000000000000000000000000000001", - "symbol": "FRAX", - "name": "Frax", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/13422/small/frax_logo.png?1608476506" - }, - "quote": { - "chainId": 252, - "address": "0xFC00000000000000000000000000000000000006", - "name": "Frax Ether", - "symbol": "FRXETH", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284" - }, - "listing_price": 0.00039179 + { + "base": { + "chainId": 252, + "address": "0xFc00000000000000000000000000000000000001", + "symbol": "FRAX", + "name": "Frax", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/13422/small/frax_logo.png?1608476506" }, - { - "base": { - "chainId": 252, - "address": "0xFc00000000000000000000000000000000000001", - "symbol": "FRAX", - "name": "Frax", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/13422/small/frax_logo.png?1608476506" - }, - "quote": { - "chainId": 252, - "address": "0xDcc0F2D8F90FDe85b10aC1c8Ab57dc0AE946A543", - "name": "USD Coin", - "symbol": "USDC", - "decimals": 6, - "logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389" - }, - "listing_price": 0.99729973, - "buy_tick": 10, - "sell_tick": 10 + "quote": { + "chainId": 252, + "address": "0x4200000000000000000000000000000000000006", + "name": "Ether", + "symbol": "ETH", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284" }, - { - "base": { - "chainId": 252, - "address": "0xFc00000000000000000000000000000000000003", - "symbol": "FPI", - "name": "Frax Price Index", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/24945/standard/FPI_icon.png?1696524100" - }, - "quote": { - "chainId": 252, - "address": "0xFC00000000000000000000000000000000000006", - "name": "Frax Ether", - "symbol": "FRXETH", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284" - }, - "listing_price": 0.00043611 + "listing_price": 0.00039179 + }, + { + "base": { + "chainId": 252, + "address": "0xFc00000000000000000000000000000000000001", + "symbol": "FRAX", + "name": "Frax", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/13422/small/frax_logo.png?1608476506" }, - { - "base": { - "chainId": 252, - "address": "0xFc00000000000000000000000000000000000003", - "symbol": "FPI", - "name": "Frax Price Index", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/24945/standard/FPI_icon.png?1696524100" - }, - "quote": { - "chainId": 252, - "address": "0xDcc0F2D8F90FDe85b10aC1c8Ab57dc0AE946A543", - "name": "USD Coin", - "symbol": "USDC", - "decimals": 6, - "logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389" - }, - "listing_price": 1.11 - } - ] \ No newline at end of file + "quote": { + "chainId": 252, + "address": "0xDcc0F2D8F90FDe85b10aC1c8Ab57dc0AE946A543", + "name": "USD Coin", + "symbol": "USDC", + "decimals": 6, + "logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389" + }, + "listing_price": 0.99729973, + "buy_tick": 10, + "sell_tick": 10 + }, + { + "base": { + "chainId": 252, + "address": "0xFc00000000000000000000000000000000000003", + "symbol": "FPI", + "name": "Frax Price Index", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/24945/standard/FPI_icon.png?1696524100" + }, + "quote": { + "chainId": 252, + "address": "0x4200000000000000000000000000000000000006", + "name": "Ether", + "symbol": "ETH", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284" + }, + "listing_price": 0.00043611 + }, + { + "base": { + "chainId": 252, + "address": "0xFc00000000000000000000000000000000000003", + "symbol": "FPI", + "name": "Frax Price Index", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/24945/standard/FPI_icon.png?1696524100" + }, + "quote": { + "chainId": 252, + "address": "0xDcc0F2D8F90FDe85b10aC1c8Ab57dc0AE946A543", + "name": "USD Coin", + "symbol": "USDC", + "decimals": 6, + "logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389" + }, + "listing_price": 1.11 + } +] diff --git a/src/scripts/generateDefaultPairs.js b/src/scripts/generateDefaultPairs.js index 0b3a3baa..126ed3af 100644 --- a/src/scripts/generateDefaultPairs.js +++ b/src/scripts/generateDefaultPairs.js @@ -1,5 +1,5 @@ // replace path with path to desired network tokenlist -const tokenlist = require("../tokens/metal.json") +const tokenlist = require("../tokens/fraxtal.json") diff --git a/src/tokens/fraxtal.json b/src/tokens/fraxtal.json index b26b9b1d..2c8e3334 100644 --- a/src/tokens/fraxtal.json +++ b/src/tokens/fraxtal.json @@ -1,34 +1,34 @@ [ - { - "chainId": 252, - "address": "0xFc00000000000000000000000000000000000001", - "name": "Frax", - "symbol": "FRAX", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/13422/small/frax_logo.png?1608476506" - }, - { - "chainId": 252, - "address": "0xFC00000000000000000000000000000000000006", - "name": "Frax Ether", - "symbol": "FRXETH", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284" - }, - { - "chainId": 252, - "address": "0xFc00000000000000000000000000000000000003", - "name": "Frax Price Index", - "symbol": "FPI", - "decimals": 18, - "logoURI": "https://assets.coingecko.com/coins/images/24945/standard/FPI_icon.png?1696524100" - }, - { - "chainId": 252, - "address": "0xDcc0F2D8F90FDe85b10aC1c8Ab57dc0AE946A543", - "name": "USD Coin", - "symbol": "USDC", - "decimals": 6, - "logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389" - } -] \ No newline at end of file + { + "chainId": 252, + "address": "0xFc00000000000000000000000000000000000001", + "name": "Frax", + "symbol": "FRAX", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/13422/small/frax_logo.png?1608476506" + }, + { + "chainId": 252, + "address": "0x4200000000000000000000000000000000000006", + "name": "Ether", + "symbol": "ETH", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png?1696527284" + }, + { + "chainId": 252, + "address": "0xFc00000000000000000000000000000000000003", + "name": "Frax Price Index", + "symbol": "FPI", + "decimals": 18, + "logoURI": "https://assets.coingecko.com/coins/images/24945/standard/FPI_icon.png?1696524100" + }, + { + "chainId": 252, + "address": "0xDcc0F2D8F90FDe85b10aC1c8Ab57dc0AE946A543", + "name": "USD Coin", + "symbol": "USDC", + "decimals": 6, + "logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389" + } +]