Skip to content

Commit

Permalink
separate weth
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed May 10, 2024
1 parent 1470fc3 commit ca60efc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/etherfi-liquid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ async function tvl(api) {
abi: "uint256:totalAssets",
target: '0xea1a6307d9b18f8d1cbf1c3dd6aad8416c06a221',
});
api.add(ADDRESSES.ethereum.EETH, balETH);
const wethBal = await api.call({
target: ADDRESSES.ethereum.WETH,
abi: "erc20:balanceOf",
params: ['0xea1a6307d9b18f8d1cbf1c3dd6aad8416c06a221'],
});
api.add(ADDRESSES.ethereum.EETH, balETH-wethBal);
api.add(ADDRESSES.ethereum.WETH, wethBal)
const balUSD = await api.call({
abi: "uint256:totalSupply",
target: '0x08c6f91e2b681faf5e17227f2a44c307b3c1364c',
Expand Down

0 comments on commit ca60efc

Please sign in to comment.