From 362426070c2ffbc55a59b7b3d143be9f456831f1 Mon Sep 17 00:00:00 2001 From: realdealshaman Date: Mon, 17 Jun 2024 22:17:08 +0100 Subject: [PATCH] add rari chain --- projects/camelot-v2/index.js | 6 +++++- projects/camelot/index.js | 3 +++ projects/helper/chains.json | 1 + projects/helper/tokenMapping.js | 5 +++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/projects/camelot-v2/index.js b/projects/camelot-v2/index.js index d69c3a02f58..6fea9e552a2 100644 --- a/projects/camelot-v2/index.js +++ b/projects/camelot-v2/index.js @@ -18,5 +18,9 @@ const export4 = uniV3Export({ xai: { factory: '0xD8676fBdfa5b56BB2298D452c9768f51e80e34AE', fromBlock: 2398999, isAlgebra: true} }) +const export5 = uniV3Export({ + rari: { factory: '0xcF8d0723e69c6215523253a190eB9Bc3f68E0FFa', fromBlock: 340548, isAlgebra: true} +}) + -module.exports = mergeExports([export1, export2, export3, export4]); \ No newline at end of file +module.exports = mergeExports([export1, export2, export3, export4, export5]); \ No newline at end of file diff --git a/projects/camelot/index.js b/projects/camelot/index.js index e3f4a0a1d3d..87e43be12c3 100644 --- a/projects/camelot/index.js +++ b/projects/camelot/index.js @@ -11,5 +11,8 @@ module.exports = { }, xai: { tvl: getUniTVL({factory: '0x18E621B64d7808c3C47bccbbD7485d23F257D26f', useDefaultCoreAssets: true}) + }, + rari: { + tvl: getUniTVL({factory: '0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4', useDefaultCoreAssets: true}) } }; \ No newline at end of file diff --git a/projects/helper/chains.json b/projects/helper/chains.json index a7b7e4cc596..e9a923076b6 100644 --- a/projects/helper/chains.json +++ b/projects/helper/chains.json @@ -242,6 +242,7 @@ "quasar", "quicksilver", "radixdlt", + "rari", "real", "reef", "regen", diff --git a/projects/helper/tokenMapping.js b/projects/helper/tokenMapping.js index 809c2d92833..a2d52ff5d7c 100644 --- a/projects/helper/tokenMapping.js +++ b/projects/helper/tokenMapping.js @@ -183,6 +183,11 @@ const fixBalancesTokens = { "0x3fb787101dc6be47cfe18aeee15404dcc842e6af": { coingeckoId: 'xai-blockchain', decimals: 18 }, "0xbee82cfdaff4a6aa4e4793cb81eb1c2e79ac463c": { coingeckoId: 'weth', decimals: 18 }, "0x1e3769bd5fb2e9e9e7d4ed8667c947661f9a82e3": { coingeckoId: 'usd-coin', decimals: 6 } + }, + rari: { + "0x0000000000000000000000000000000000000000": { coingeckoId: 'weth', decimals: 18 }, + "0xf037540e51d71b2d2b1120e8432ba49f29edfbd0": { coingeckoId: 'weth', decimals: 18 }, + "0xfbda5f676cb37624f28265a144a48b0d6e87d3b6": { coingeckoId: 'usd-coin', decimals: 6 }, } }