Skip to content

Commit dbcbdcf

Browse files
authored
add tokens asseto CASH+ (#16722)
1 parent b665c44 commit dbcbdcf

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

projects/asseto-cashsplus/index.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
const sdk = require('@defillama/sdk');
2+
3+
4+
const bscTokens = [
5+
"0x1775504c5873e179Ea2f8ABFcE3861EC74D159bc", // CashPlus_BSC
6+
];
7+
const ethTokens = [
8+
"0x498D9329555471bF6073A5f2D047F746d522A373", // CashPlus_ETH
9+
];
10+
11+
async function getTokensTvl(api, chain, tokens) {
12+
const balances = {};
13+
for (const tokenAddress of tokens) {
14+
const totalSupplyRes = await sdk.api.erc20.totalSupply({
15+
target: tokenAddress,
16+
chain,
17+
block: api.block,
18+
});
19+
balances[`${chain}:${tokenAddress}`] = totalSupplyRes.output;
20+
}
21+
return balances;
22+
}
23+
24+
module.exports = {
25+
bsc: {
26+
tvl: (api) => getTokensTvl(api, 'bsc', bscTokens)
27+
},
28+
ethereum: {
29+
tvl: (api) => getTokensTvl(api, 'ethereum', ethTokens)
30+
},
31+
hallmarks: [
32+
["2025-10-14", "CASH+ is a 1:1 asset-backed token collateralized by the CMS USD Money Market Fund, which invests in high-quality short-term USD instruments."]
33+
]
34+
};

0 commit comments

Comments
 (0)