Skip to content

Commit 6770ee3

Browse files
committed
track apETH DefiLlama#11968
1 parent 4eadabe commit 6770ee3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

projects/aqua-patina/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const apETH = '0xAaAaAAaBC6CBc3A1FD3a0fe0FDec43251C6562F5'
2+
3+
async function tvl(api) {
4+
const supply = await api.call({ target: apETH, abi: 'uint256:totalSupply' })
5+
const multiplier = await api.call({ target: apETH, abi: 'uint256:ethPerAPEth' })
6+
api.addGasToken(supply * multiplier / 1e18)
7+
}
8+
9+
module.exports = {
10+
doublecounted: true,
11+
methodology: 'Returns the ETH equivalent value of the total supply of apETH tokens on Ethereum. This is calculated by the multiplier used in the contract to determine the ETH value of each token when minting apETH.',
12+
start: 20937454,
13+
ethereum: {
14+
tvl,
15+
}
16+
}

0 commit comments

Comments
 (0)