Files
2025-10-22 14:14:03 +01:00

17 lines
495 B
JavaScript

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,
},
};