From b59a007f9ba1c0bf20f14a8cc4a6392e7989e643 Mon Sep 17 00:00:00 2001 From: Jatin Jain Date: Sun, 14 Jul 2024 21:08:23 +0530 Subject: [PATCH] Renzo pzeth tvl tracking (#10982) * add: base tracker for ezETH * add: pzeth tvl tracking on mainnet --- projects/renzo/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/renzo/index.js b/projects/renzo/index.js index 74f234f11f32..94b80e7611f8 100644 --- a/projects/renzo/index.js +++ b/projects/renzo/index.js @@ -2,6 +2,7 @@ const ADDRESSES = require('../helper/coreAssets.json') const L1_EZ_ETH_ADDRESS = "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110"; const L2_EZ_ETH_ADDRESS = ADDRESSES.blast.ezETH; const L1_LOCKBOX_ADDRESS = "0xC8140dA31E6bCa19b287cC35531c2212763C2059"; +const L1_PZ_ETH_ADDRESS = "0x8c9532a60E0E7C6BbD2B2c1303F63aCE1c3E9811"; async function L2Tvl(api) { return { @@ -12,7 +13,9 @@ async function L2Tvl(api) { async function ethTvl(api) { const totalTvl = await api.call({ target: L1_EZ_ETH_ADDRESS, abi: "erc20:totalSupply" }); const lockBoxBalance = await api.call({ target: L1_EZ_ETH_ADDRESS, abi: "erc20:balanceOf", params: [L1_LOCKBOX_ADDRESS] }) - api.add(L1_EZ_ETH_ADDRESS, totalTvl - lockBoxBalance) + const pzEthBalance = await api.call({target: L1_PZ_ETH_ADDRESS, abi: "erc20:totalSupply"}); + api.add(L1_EZ_ETH_ADDRESS, totalTvl - lockBoxBalance); + api.add(L1_PZ_ETH_ADDRESS, pzEthBalance); } const chains = ["mode", "blast", "bsc", "linea", "arbitrum", "base"]