diff --git a/projects/swell-restaking/index.js b/projects/swell-restaking/index.js index 21d2809246fe..4e778c17f9b7 100644 --- a/projects/swell-restaking/index.js +++ b/projects/swell-restaking/index.js @@ -1,13 +1,12 @@ const { nullAddress } = require("../helper/tokenMapping") async function tvl(api) { - const tvl = await api.call({ - target: "0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0", - abi: "uint256:totalETHDeposited" - }) + const totalSupply = await api.call({ target: '0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0', abi: 'uint256:totalSupply'}); + const rate = await api.call({ target: '0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0', abi: 'uint256:getRate'}); + return { - [nullAddress]: tvl - } + [nullAddress]: (totalSupply * rate)/1e18 + }; } module.exports = {