mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-29 21:36:44 +08:00
17 lines
495 B
JavaScript
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,
|
|
},
|
|
}; |