mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-28 21:05:32 +08:00
* use tvl function v2 * refactor addFundsInMasterChef * replace usage of timestamp field * more refactoring * more refactoring
22 lines
594 B
JavaScript
22 lines
594 B
JavaScript
module.exports = {
|
|
misrepresentedTokens: true,
|
|
hallmarks: [
|
|
[1670856656, "Launch GLP Vaults"]
|
|
],
|
|
arbitrum: {
|
|
tvl: async (api) => {
|
|
const vaults = [
|
|
'0x1d42783E7eeacae12EbC315D1D2D0E3C6230a068', // tricrypto
|
|
'0xf9305009fba7e381b3337b5fa157936d73c2cf36', // dnGmxSeniorVault
|
|
'0x8478ab5064ebac770ddce77e7d31d969205f041e', // dnGmxJuniorVault
|
|
]
|
|
const bals = await api.multiCall({
|
|
abi: 'int256:getVaultMarketValue', calls: vaults,
|
|
})
|
|
|
|
return {
|
|
tether: bals.reduce((a, i) => a + i / 1e6, 0),
|
|
}
|
|
}
|
|
}
|
|
} |