From 1366e5287742f7d28271437a1eb6046c636b0514 Mon Sep 17 00:00:00 2001 From: kiwi0401 Date: Fri, 28 Jun 2024 14:28:21 -0700 Subject: [PATCH] liquid restaking vaults --- projects/affine-defi-liquid/index.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 projects/affine-defi-liquid/index.js diff --git a/projects/affine-defi-liquid/index.js b/projects/affine-defi-liquid/index.js new file mode 100644 index 000000000000..479cdf8d2ac1 --- /dev/null +++ b/projects/affine-defi-liquid/index.js @@ -0,0 +1,25 @@ +const ADDRESSES = require('../helper/coreAssets.json') + +async function tvl(api) { + const balETHSymbioticVault = await api.call({ + abi: "uint256:totalAssets", + target: '0x0D53bc2BA508dFdf47084d511F13Bb2eb3f8317B', + }); + + api.add(ADDRESSES.ethereum.WSTETH, balETHSymbioticVault) + + + const balETHEigenLayerVault = await api.call({ + abi: "uint256:totalAssets", + target: '0x47657094e3AF11c47d5eF4D3598A1536B394EEc4', + }); + + api.add(ADDRESSES.ethereum.WSTETH, balETHEigenLayerVault) +} + +module.exports = { + doublecounted: true, + ethereum: { + tvl, + }, +};