Skip to content

Commit

Permalink
chains: add Rari
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMyrddin committed Jun 17, 2024
1 parent 2ba6c78 commit 1ec3792
Show file tree
Hide file tree
Showing 2 changed files with 38 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,13 +2,14 @@ const { version } = require("../package.json");
require('dotenv').config()
const arbitrumSepolia = require("./tokens/arbitrum-sepolia.json");
const arbitrumOne = require("./tokens/arbitrum-one.json");
const rari = require("./tokens/rari.json");
const sanko = require("./tokens/sanko.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, ...sanko, ...xai]
const tokens = [...arbitrumSepolia, ...arbitrumOne, ...rari, ...sanko, ...xai]
const processedTokens = JSON.parse(JSON.stringify(tokens).replace(/BASE_URL/g, BASE_URL))
const parsed = version.split(".");

Expand Down
36 changes: 36 additions & 0 deletions src/tokens/rari.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[
{
"chainId": 1380012617,
"symbol": "WETH",
"name": "Wrapped Ether",
"address": "0xf037540e51D71b2D2B1120e8432bA49F29EDFBD0",
"logoURI": "BASE_URL/assets/weth.svg",
"decimals": 18,
"isWNative": true,
"common": true,
"defaultSwapOutput": true,
"quote": "native"
},
{
"chainId": 1380012617,
"symbol": "USDC",
"name": "USD Coin",
"address": "0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6",
"logoURI": "BASE_URL/assets/usdc.svg",
"decimals": 6,
"common": true,
"defaultSwapInput": true,
"quote": "stable"
},
{
"chainId": 1380012617,
"symbol": "USDT",
"name": "USDT",
"address": "0x362FAE9A75B27BBc550aAc28a7c1F96C8D483120",
"logoURI": "BASE_URL/assets/usdt.svg",
"decimals": 6,
"common": true,
"defaultSwapInput": true,
"quote": "derived_stable"
}
]

0 comments on commit 1ec3792

Please sign in to comment.