Skip to content

Commit 7a4d305

Browse files
iFirebrandclaude0xpeluche
authored
Add Theoriq V2 tokenized vault adapter (#18509)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: 0xpeluche <110820448+0xpeluche@users.noreply.github.com>
1 parent 7a46fca commit 7a4d305

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const VAULTS = ["0x0F54097295E97cE61736bb9a0a1066cDf3e31C8F"];
2+
3+
// Strategies: proof of the collateral held by the vault
4+
const SUB_ACCOUNTS = [
5+
"0x361339dd6ceCF76AfDadDf35fB41DA58aFA80A94",
6+
"0xB340C84e534B9455B4cc4177E3789070899370d5",
7+
"0xfEcd45eFD14e282D802A4C6705068B9f19b70C51",
8+
"0x9F6F9e1F355958F5c55057E2B63F60b8581CCA18",
9+
];
10+
11+
const tvl = async (api) => {
12+
return api.erc4626Sum({ calls: VAULTS, tokenAbi: 'address:asset', balanceAbi: 'uint256:getTotalAssets' });
13+
}
14+
15+
module.exports = {
16+
doublecounted: true,
17+
methodology: "TVL is the sum of asset balances held by the Theoriq vault.",
18+
ethereum: { tvl },
19+
};

0 commit comments

Comments
 (0)