Skip to content

Commit ce44360

Browse files
Ali3N110g1nt0ki
andauthored
add wstkscUSD tvl tracking in stablejack v2 on Sonic chain. (DefiLlama#15370)
Co-authored-by: g1nt0ki <[email protected]>
1 parent d6731e2 commit ce44360

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

projects/stablejack-scusd/index.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
const { sumTokensExport } = require("../helper/unwrapLPs");
2-
const ADDRESSES = require('../helper/coreAssets.json')
2+
const ADDRESSES = require('../helper/coreAssets.json');
33

44
module.exports = {
5+
misrepresentedTokens: true,
6+
methodology:
7+
"TVL includes scUSD, STS, wOS held in various contracts. Also includes wstkscUSD tokens in the vault, converted to scUSD via convertToAssets().",
58
sonic: {
6-
tvl: sumTokensExport({
7-
tokensAndOwners: [
9+
tvl: async (api) => {
10+
const tokensAndOwners = [
811
[ADDRESSES.sonic.scUSD, '0xf41ECda82C54745aF075B79b6b31a18dD986BA4c'], // scUSD
912
[ADDRESSES.sonic.STS, '0x682D7F02BC57Bc64bfb36078454601Ba0Efbe155'], // stS
1013
['0x9f0df7799f6fdad409300080cff680f5a23df4b1', '0x0A6F4c98D087445Ef92b589c6f39D22C4373615F'], // wOS
11-
]
12-
}),
14+
['0x9fb76f7ce5FCeAA2C42887ff441D46095E494206', '0xb27f555175e67783ba16f11de3168f87693e3c8f'], // wstkscUSD
15+
];
16+
17+
return api.sumTokens({ tokensAndOwners });
18+
},
1319
},
1420
avax: {
1521
tvl: sumTokensExport({
1622
tokensAndOwners: [
1723
['0xDf788AD40181894dA035B827cDF55C523bf52F67', '0xf010696e0BE614511516bE0DdB89AFf06B6cA440'], // rsAVAX
1824
['0x06d47F3fb376649c3A9Dafe069B3D6E35572219E', '0xC37914DacF56418A385a4883512Be8b8279c94C5'], // savUSD
19-
]
25+
],
2026
}),
2127
},
2228
};

0 commit comments

Comments
 (0)