Skip to content

Commit cb761b7

Browse files
authored
feat: add cyclex fund adapters (DefiLlama#13863)
1 parent a53dc56 commit cb761b7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

projects/cyclex/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
async function tvl(api) {
3+
const CFAT = "0x14E3206C7146aCBc9274af8E2B0BEB4bB6e1eF54"
4+
const supply = await api.call({ abi: 'erc20:totalSupply', target: CFAT })
5+
api.add(CFAT, supply)
6+
}
7+
8+
module.exports = {
9+
methodology: "TVL is fetched from CycleX oracle",
10+
base: {
11+
tvl
12+
},
13+
}

0 commit comments

Comments
 (0)