mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
Avant avETH (#16776)
This commit is contained in:
17
projects/avant-aveth/index.js
Normal file
17
projects/avant-aveth/index.js
Normal 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,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user