Skip to content

Commit 648968a

Browse files
committed
track lucidly DefiLlama#11470
1 parent 34241ef commit 648968a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

projects/lucidly/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
async function tvl(api) {
2+
const pools = [
3+
'0x8dBE744F6558F36d34574a0a6eCA5A8dAa827235',
4+
]
5+
const tokens = await api.fetchList({ lengthAbi: 'numTokens', itemAbi: 'tokens', calls:pools, groupedByInput: true, })
6+
console.log(tokens)
7+
const ownerTokens = pools.map((v, i) => [tokens[i], v])
8+
return api.sumTokens({ ownerTokens })
9+
}
10+
11+
12+
module.exports = {
13+
start: 1693971707,
14+
ethereum: { tvl }
15+
};

0 commit comments

Comments
 (0)