General EVM contract calls
Balance Calls
const { sumTokensExport, sumTokens } = require('./helper/unwrapLPs')
const owner = '0x...' // vault address
const tokens = [
'0xff970a61a04b1ca14834a43f5de4533ebddb5cc8', // USDC
'0x0000000000000000000000000000000000000000', // ETH
]
module.exports = {
arbitrum: {
tvl: sumTokensExport({ owner, tokens })
}
}
// or
module.exports = {
arbitrum: {
tvl: async (api) => {
return sumTokens2({ owner, tokens, api, })
}
}
}Custom Contract Calls
Last updated
Was this helpful?
