Skip to content

Commit

Permalink
chains: add XAI
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMyrddin committed Mar 12, 2024
1 parent 29dd6b6 commit 353def0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/buildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ const { version } = require("../package.json");
require('dotenv').config()
const arbitrumSepolia = require("./tokens/arbitrum-sepolia.json");
const arbitrumOne = require("./tokens/arbitrum-one.json");
const xai = require("./tokens/xai.json");

const BASE_URL = process.env.BASE_URL || "https://token-list.camelot.exchange"

module.exports = function buildList() {
const tokens = [...arbitrumSepolia, ...arbitrumOne]
const tokens = [...arbitrumSepolia, ...arbitrumOne, ...xai]
const processedTokens = JSON.parse(JSON.stringify(tokens).replace(/BASE_URL/g, BASE_URL))
const parsed = version.split(".");

Expand Down
23 changes: 23 additions & 0 deletions src/tokens/xai.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"chainId": 660279,
"symbol": "WXAI",
"name": "Wrapped XAI",
"address": "0x3fB787101DC6Be47cfe18aeEe15404dcC842e6AF",
"logoURI": "BASE_URL/assets/xai.png",
"decimals": 18,
"isWNative": true,
"common": true,
"quote": "native"
},
{
"chainId": 660279,
"symbol": "USDC.e",
"name": "Bridged USDC",
"address": "0x300a7B57DC85b6A9776E249614aBf0FE5c9905Fb",
"logoURI": "BASE_URL/assets/usdc.svg",
"decimals": 6,
"common": true,
"quote": "stable"
}
]

0 comments on commit 353def0

Please sign in to comment.