Avant avETH (#16776)

This commit is contained in:
spider-g
2025-10-22 10:14:03 -03:00
committed by GitHub
parent 7ec29de16b
commit 5abb4bde30

View File

@@ -0,0 +1,17 @@
const AVETH_ADDRESS = "0x9469470C9878bf3d6d0604831d9A3A366156f7EE";
const ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
async function tvl(api) {
const totalSupply = await api.call({ abi: 'erc20:totalSupply', target: AVETH_ADDRESS });
api.add(ETH_ADDRESS, totalSupply);
}
// Export the adapter
module.exports = {
methodology: "Calculates TVL by querying the avETH contract's totalSupply function",
timetravel: true,
doublecounted: true,
ethereum: {
tvl,
},
};