Skip to content

Commit

Permalink
add diva vault
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed May 10, 2024
1 parent ca60efc commit ed47a18
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions projects/diva/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
const ADDRESSES = require('../helper/coreAssets.json')
const { sumTokensExport } = require('../helper/unwrapLPs')
const sdk = require("@defillama/sdk")

module.exports = {
methodology: 'ETH and stETH in vaults',
ethereum: {
tvl: sumTokensExport({ owners: [
tvl: sdk.util.sumChainTvls([sumTokensExport({ owners: [
"0x1ce8aafb51e79f6bdc0ef2ebd6fd34b00620f6db",
"0x16770d642e882e1769ce4ac8612b8bc0601506fc"
], tokens: [
ADDRESSES.ethereum.WETH,
ADDRESSES.ethereum.STETH
]}),
]}), async (api) => {
return {
[ADDRESSES.ethereum.WETH]: await api.call({
target: "0x6c1edce139291af5b84fb1e496c9747f83e876c9",
abi: "uint256:totalAssets"
})
}
}]),
}
};

0 comments on commit ed47a18

Please sign in to comment.