Skip to content

Commit 0226d4e

Browse files
author
Semon
committed
feat: Add axlp Adapter
1 parent b9df5fc commit 0226d4e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

projects/axlp/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const sAMLP_arbitrum = '0xbC08F30c18a79a3a18dBbd40931C551F91EDB9dB'
2+
const sAHLP_arbitrum = '0x50c30f24b957B1ac9e31558e55Bf7dc4ab685eA9'
3+
4+
module.exports = {
5+
methodology: 'counts the number of sAMLP and sAHLP tokens in the contract.',
6+
arbitrum: {
7+
tvl: async (api) => {
8+
const [sAMLP_supply, sAHLP_supply] = await api.multiCall({
9+
abi: 'erc20:totalSupply',
10+
calls: [sAMLP_arbitrum, sAHLP_arbitrum]
11+
})
12+
api.add(sAMLP_arbitrum, sAMLP_supply)
13+
api.add(sAHLP_arbitrum, sAHLP_supply)
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)