Skip to content

Commit

Permalink
track new protocols #11772
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Sep 27, 2024
1 parent d10b0a7 commit cff4e8e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/metavault-amm-v2/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

const { uniTvlExports } = require("../helper/unknownTokens");

module.exports = uniTvlExports({
scroll: '0xCc570Ec20eCB62cd9589FA33724514BDBc98DC7E',
linea: '0xCc570Ec20eCB62cd9589FA33724514BDBc98DC7E',
})
14 changes: 14 additions & 0 deletions projects/quickswap-hydra/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const config = {
polygon_zkevm: '0x14c8FEA10fdc2d1357410f473e2CAa035a872517',
manta: '0x443Cf165B72e4b4331C0101A10553269972Ed4B8'
}

Object.keys(config).forEach(chain => {
const target = config[chain]
module.exports[chain] = {
tvl: async (api) => {
const tokens= await api.call({ abi: 'address[]:getAssetList', target})
return api.sumTokens({ owner: target, tokens })
}
}
})

0 comments on commit cff4e8e

Please sign in to comment.