Skip to content

Commit 19a0877

Browse files
Add Clutch market TVL Adapter for Arbitrum Network on DeFiLlama (#14108)
1 parent f511d35 commit 19a0877

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

projects/clutch-market/index.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
const { sumTokens2 } = require("../helper/unwrapLPs");
2+
3+
const config = {
4+
arbitrum: {
5+
staking: {
6+
token: "0xF4AcDE4D938844751f34659C67056f7e69dBE85a", // CLUTCH token
7+
contract: "0x2F849Bf926E457CE57dF4f8C24eEA0d33Fa04672" // CLUTCH staking contract
8+
},
9+
tvlTokens: [
10+
{
11+
token: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", // USDC
12+
contract: "0x9797dA129eaFA143E8A50028563b69Cc02ea6444" // USDC TVL contract
13+
}
14+
]
15+
}
16+
};
17+
18+
async function stakingTvl(_, _1, _2, { api }) {
19+
const { token, contract } = config.arbitrum.staking;
20+
return sumTokens2({ api, tokens: [token], owners: [contract] });
21+
}
22+
23+
async function tvl(_, _1, _2, { api }) {
24+
const tokensAndOwners = config.arbitrum.tvlTokens.map(({ token, contract }) => [token, contract]);
25+
return sumTokens2({ api, tokensAndOwners });
26+
}
27+
28+
module.exports = {
29+
methodology: "TVL includes staking for the project's own token (CLUTCH) and total value locked (TVL) for USDC in separate contracts.",
30+
arbitrum: { staking: stakingTvl, tvl },
31+
};

0 commit comments

Comments
 (0)