Skip to content

Commit ed2382a

Browse files
Add Stobox TVL (DefiLlama#9826)
1 parent 59ccc0c commit ed2382a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

projects/stobox/index.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
const tokenDetails = {
2+
bsc: {
3+
GFST: '0xbA2e788D83eA786d11ED87353763616157A35082',
4+
STBX: '0x65DaD60a28626309F7504d853AFF0099FeD1aAaF',
5+
SLX: '0x2C4A911B16435f96e6bD18E4d720a32480554a22',
6+
LSRWA: '0x475eD67Bfc62B41c048b81310337c1D75D45aADd',
7+
},
8+
polygon: {
9+
CSB23: '0x76381bFCCB35736a854675570c07a73508622AFd',
10+
MFRET: '0xAa6d73C22A953a6A83B9963052bA73f0C53FC764',
11+
MRDTS: '0xF71272DBC0Da11aDd09cd44A0b7F7D384C0D5Fe1',
12+
CTREAL: '0x06c3aa74645f424d24f6C835e8D606D35225Ab96',
13+
},
14+
};
15+
16+
Object.keys(tokenDetails).forEach((chain) => {
17+
const tokenAddress = Object.values(tokenDetails[chain]);
18+
19+
module.exports[chain] = {
20+
methodology:
21+
'Total Supply of all security tokens issued by Stobox multiplied by the current price of all assets.',
22+
tvl: async (api) => {
23+
let supplies;
24+
25+
supplies = await api.multiCall({
26+
abi: 'erc20:totalSupply',
27+
calls: tokenAddress,
28+
});
29+
api.addTokens(tokenAddress, supplies);
30+
31+
return api.getBalances();
32+
},
33+
};
34+
});

0 commit comments

Comments
 (0)