Skip to content

Commit c190926

Browse files
anglesb0xpelucheg1nt0ki
authored
Angles Liquid (DefiLlama#13333)
Co-authored-by: 0xpeluche <[email protected]> Co-authored-by: g1nt0ki <[email protected]>
1 parent 13d1e2b commit c190926

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

projects/angles-liquid/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
async function tvl(api) {
2+
const registryAddress = '0x9786DB1486A2f67977eF1e3dfbd0Eb01e407Be7b';
3+
4+
const pools = await api.call({ abi: 'address[]:getPoolAddresses', target: registryAddress, });
5+
6+
const tokens = await api.fetchList({ lengthAbi: 'numTokens', itemAbi: 'tokens', calls: pools, groupedByInput: true, })
7+
const ownerTokens = pools.map((v, i) => [tokens[i], v])
8+
const blacklistedTokens = ['0xfa85fe5a8f5560e9039c04f2b0a90de1415abd70']
9+
return api.sumTokens({ ownerTokens, blacklistedTokens })
10+
}
11+
12+
13+
module.exports = {
14+
doublecounted: true,
15+
start: '2025-01-01',
16+
sonic: { tvl }
17+
};

0 commit comments

Comments
 (0)