Skip to content

Commit

Permalink
add fraxtal and metal
Browse files Browse the repository at this point in the history
  • Loading branch information
hskang9 committed Aug 13, 2024
1 parent 4efe13f commit c8226cf
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 124 deletions.
45 changes: 31 additions & 14 deletions src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand All @@ -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",
Expand Down
152 changes: 76 additions & 76 deletions src/pairs/fraxtal.json
Original file line number Diff line number Diff line change
@@ -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
}
]
"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
}
]
2 changes: 1 addition & 1 deletion src/scripts/generateDefaultPairs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// replace path with path to desired network tokenlist
const tokenlist = require("../tokens/metal.json")
const tokenlist = require("../tokens/fraxtal.json")



Expand Down
66 changes: 33 additions & 33 deletions src/tokens/fraxtal.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
{
"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"
}
]

0 comments on commit c8226cf

Please sign in to comment.