Skip to content

Commit

Permalink
Track SailFish V3 and add OCC support (#13148)
Browse files Browse the repository at this point in the history
Co-authored-by: Alofe Oluwafemi <[email protected]>
  • Loading branch information
g1nt0ki and alofeoluwafemi authored Jan 17, 2025
1 parent 38ed041 commit 3fa0549
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 24 deletions.
9 changes: 5 additions & 4 deletions projects/camelot-v2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ])
module.exports = mergeExports([export1, export2])
31 changes: 11 additions & 20 deletions projects/camelot/index.js
Original file line number Diff line number Diff line change
@@ -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 },
};
11 changes: 11 additions & 0 deletions projects/edbank-xyz/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { sumTokensExport } = require('../helper/unwrapLPs')

module.exports = {
occ: {
tvl: sumTokensExport({
tokensAndOwners: [
['0xd02E8c38a8E3db71f8b2ae30B8186d7874934e12', '0x07e4465c8f7A47a77761566A639C0a1CF26800dC'],
]
})
}
}
1 change: 1 addition & 0 deletions projects/helper/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@
"oas",
"oasis",
"obyte",
"occ",
"odyssey",
"okexchain",
"omax",
Expand Down
3 changes: 3 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] || {}) })
Expand Down
5 changes: 5 additions & 0 deletions projects/sailfish-v3/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { uniV3Export } = require('../helper/uniswapV3')

module.exports = uniV3Export({
occ: { factory: '0x963A7f4eB46967A9fd3dFbabD354fC294FA2BF5C', fromBlock: 142495 },
})

0 comments on commit 3fa0549

Please sign in to comment.