Skip to content

Commit

Permalink
track cronos zkevm (DefiLlama#11316)
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki authored and tlatkdgus1 committed Nov 25, 2024
1 parent ee3e292 commit 3af5718
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 13 additions & 10 deletions projects/ebisus-bay/index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
const { staking } = require('../helper/staking')
const { getUniTVL } = require('../helper/unknownTokens')

const factory = '0x5f1d751f447236f486f4268b883782897a902379'
const frtnToken = '0xaF02D78F39C0002D14b95A3bE272DA02379AfF21'
const bankContract = '0x1E16Aa4Bb965478Df310E8444CD18Fa56603A25F'


module.exports = {
misrepresentedTokens: true,
methodology: "The TVL accounts for all LP on the dex, using the factory address 0x5f1d751f447236f486f4268b883782897a902379). Staking accounts for the FRTN staked in the bank on our platform.",
cronos: {
staking: staking(bankContract, frtnToken),
tvl: getUniTVL({
factory,
useDefaultCoreAssets: true,
}),
},
misrepresentedTokens: true,
methodology: "The TVL accounts for all LP on the dex, using the factory address 0x5f1d751f447236f486f4268b883782897a902379). Staking accounts for the FRTN staked in the bank on our platform.",
}

const config = {
cronos: '0x5f1d751f447236f486f4268b883782897a902379',
cronos_zkevm: '0x1A695B3aC30D41F9A1D856A27DD0D9DdaaCe750d',
}

Object.keys(config).forEach(chain => {
const factory = config[chain]
module.exports[chain] = { tvl: getUniTVL({ factory, useDefaultCoreAssets: true, }) }
})

module.exports.cronos.staking = staking(bankContract, frtnToken)
1 change: 1 addition & 0 deletions projects/helper/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"crab",
"crescent",
"cronos",
"cronos_zkevm",
"csc",
"cube",
"curio",
Expand Down
5 changes: 4 additions & 1 deletion projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ const fixBalancesTokens = {
},
islm: {
'0x0ce35b0d42608ca54eb7bcc8044f7087c18e7717': { coingeckoId: 'usd-coin', decimals: 6 },
}
},
cronos_zkevm: {
'0xc1bf55ee54e16229d9b369a5502bfe5fc9f20b6d': { coingeckoId: 'crypto-com-chain', decimals: 18 },
},
}

ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })
Expand Down

0 comments on commit 3af5718

Please sign in to comment.