Skip to content

Commit

Permalink
Add Ulysses adapter for Maia DAO Ecosystem (#11688)
Browse files Browse the repository at this point in the history
Co-authored-by: g1nt0ki <[email protected]>
  • Loading branch information
0xLightt and g1nt0ki committed Sep 20, 2024
1 parent 2a51e59 commit f4fa4ff
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions projects/ulysses/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const { sumTokensExport } = require("../helper/unwrapLPs")
const ADDRESSES = require('../helper/coreAssets.json')

const defaultPort = '0x6C6d3FB0289039b0FCa2E7244A06Cf9403464646'
const ports = {
arbitrum: '0x0c453ef35986E1d8dA22043fF00BF03cEB42e1f7',
ethereum: undefined,
optimism: undefined,
base: undefined,
polygon: undefined,
avax: undefined,
bsc: undefined,
// metis: undefined,
}

Object.keys(ports).forEach(chain => module.exports[chain] = { tvl: sumTokensExport({ owner: ports[chain] ?? defaultPort, fetchCoValentTokens: true, }) })

const chainsWithCovalentSupport = {
metis: { tokens: Object.values(ADDRESSES.metis).concat([
ADDRESSES.null,
])}
}

Object.keys(chainsWithCovalentSupport).forEach(chain => {
const { tokens, port =defaultPort } = chainsWithCovalentSupport[chain]
module.exports[chain] = { tvl: sumTokensExport({ owner: port, tokens })
} })

0 comments on commit f4fa4ff

Please sign in to comment.