From 3fa0549578542e300f9c00ab16f2ffa03e37cb14 Mon Sep 17 00:00:00 2001 From: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:30:42 +0100 Subject: [PATCH] Track SailFish V3 and add OCC support (#13148) Co-authored-by: Alofe Oluwafemi --- projects/camelot-v2/index.js | 9 +++++---- projects/camelot/index.js | 31 +++++++++++-------------------- projects/edbank-xyz/index.js | 11 +++++++++++ projects/helper/chains.json | 1 + projects/helper/tokenMapping.js | 3 +++ projects/sailfish-v3/index.js | 5 +++++ 6 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 projects/edbank-xyz/index.js create mode 100644 projects/sailfish-v3/index.js diff --git a/projects/camelot-v2/index.js b/projects/camelot-v2/index.js index cc9f9e5631d2..34b291091de5 100644 --- a/projects/camelot-v2/index.js +++ b/projects/camelot-v2/index.js @@ -6,14 +6,15 @@ const export1 = uniV3Export({ }) const export2 = uniV3Export({ - xai: { factory: '0xD8676fBdfa5b56BB2298D452c9768f51e80e34AE', fromBlock: 2398999, isAlgebra: true}, - rari: { factory: '0xcF8d0723e69c6215523253a190eB9Bc3f68E0FFa', fromBlock: 340548, isAlgebra: true}, - sanko: { factory: '0xcF8d0723e69c6215523253a190eB9Bc3f68E0FFa', fromBlock: 51, isAlgebra: true}, + xai: { factory: '0xD8676fBdfa5b56BB2298D452c9768f51e80e34AE', fromBlock: 2398999, isAlgebra: true }, + rari: { factory: '0xcF8d0723e69c6215523253a190eB9Bc3f68E0FFa', fromBlock: 340548, isAlgebra: true }, + sanko: { factory: '0xcF8d0723e69c6215523253a190eB9Bc3f68E0FFa', fromBlock: 51, isAlgebra: true }, arbitrum: { factory: '0xd490f2f6990c0291597fd1247651b4e0dcf684dd', fromBlock: 75633510, isAlgebra: true, }, reya: { factory: '0x10aA510d94E094Bd643677bd2964c3EE085Daffc', fromBlock: 2932166, isAlgebra: true, }, gravity: { factory: '0x10aA510d94E094Bd643677bd2964c3EE085Daffc', fromBlock: 11988, isAlgebra: true, }, apechain: { factory: '0x10aA510d94E094Bd643677bd2964c3EE085Daffc', fromBlock: 60224, isAlgebra: true, }, duckchain: { factory: '0xCf4062Ee235BbeB4C7c0336ada689ed1c17547b6', fromBlock: 1530060, isAlgebra: true, }, + occ: { factory: '0xCf4062Ee235BbeB4C7c0336ada689ed1c17547b6', fromBlock: 21053, isAlgebra: true, }, }) -module.exports = mergeExports([export1, export2 ]) \ No newline at end of file +module.exports = mergeExports([export1, export2]) \ No newline at end of file diff --git a/projects/camelot/index.js b/projects/camelot/index.js index bf8159e28f95..3294bd36e89f 100644 --- a/projects/camelot/index.js +++ b/projects/camelot/index.js @@ -1,30 +1,21 @@ const { getUniTVL } = require("../helper/unknownTokens"); +const tvl = getUniTVL({ factory: '0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4', useDefaultCoreAssets: true }) + module.exports = { misrepresentedTokens: true, start: '2022-11-22', arbitrum: { - tvl: getUniTVL({ factory: '0x6EcCab422D763aC031210895C81787E87B43A652', useDefaultCoreAssets: true,}), - }, - sanko: { - tvl: getUniTVL({factory: '0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4', useDefaultCoreAssets: true}) + tvl: getUniTVL({ factory: '0x6EcCab422D763aC031210895C81787E87B43A652', useDefaultCoreAssets: true, }), }, + sanko: { tvl }, xai: { - tvl: getUniTVL({factory: '0x18E621B64d7808c3C47bccbbD7485d23F257D26f', useDefaultCoreAssets: true}) - }, - rari: { - tvl: getUniTVL({factory: '0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4', useDefaultCoreAssets: true}) - }, - reya: { - tvl: getUniTVL({factory: '0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4', useDefaultCoreAssets: true}) - }, - gravity: { - tvl: getUniTVL({factory: '0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4', useDefaultCoreAssets: true}) - }, - apechain: { - tvl: getUniTVL({factory: '0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4', useDefaultCoreAssets: true}) + tvl: getUniTVL({ factory: '0x18E621B64d7808c3C47bccbbD7485d23F257D26f', useDefaultCoreAssets: true }) }, - duckchain: { - tvl: getUniTVL({factory: '0x7d8c6B58BA2d40FC6E34C25f9A488067Fe0D2dB4', useDefaultCoreAssets: true}) - } + rari: { tvl }, + reya: { tvl }, + gravity: { tvl }, + apechain: { tvl }, + duckchain: { tvl }, + occ: { tvl }, }; \ No newline at end of file diff --git a/projects/edbank-xyz/index.js b/projects/edbank-xyz/index.js new file mode 100644 index 000000000000..e7b971a296d6 --- /dev/null +++ b/projects/edbank-xyz/index.js @@ -0,0 +1,11 @@ +const { sumTokensExport } = require('../helper/unwrapLPs') + +module.exports = { + occ: { + tvl: sumTokensExport({ + tokensAndOwners: [ + ['0xd02E8c38a8E3db71f8b2ae30B8186d7874934e12', '0x07e4465c8f7A47a77761566A639C0a1CF26800dC'], + ] + }) + } +} \ No newline at end of file diff --git a/projects/helper/chains.json b/projects/helper/chains.json index 0d29c68f5553..c6a267e23ce6 100644 --- a/projects/helper/chains.json +++ b/projects/helper/chains.json @@ -241,6 +241,7 @@ "oas", "oasis", "obyte", + "occ", "odyssey", "okexchain", "omax", diff --git a/projects/helper/tokenMapping.js b/projects/helper/tokenMapping.js index 5c3c1244ddde..100e1e9b4c3e 100644 --- a/projects/helper/tokenMapping.js +++ b/projects/helper/tokenMapping.js @@ -65,6 +65,9 @@ const fixBalancesTokens = { mantra: { uom: { coingeckoId: 'mantra-dao', decimals: 6 }, }, + occ: { + '0xd02e8c38a8e3db71f8b2ae30b8186d7874934e12': { coingeckoId: 'edu-coin', decimals: 18 }, + } } ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) }) diff --git a/projects/sailfish-v3/index.js b/projects/sailfish-v3/index.js new file mode 100644 index 000000000000..04ef7c8338dc --- /dev/null +++ b/projects/sailfish-v3/index.js @@ -0,0 +1,5 @@ +const { uniV3Export } = require('../helper/uniswapV3') + +module.exports = uniV3Export({ + occ: { factory: '0x963A7f4eB46967A9fd3dFbabD354fC294FA2BF5C', fromBlock: 142495 }, +})