Skip to content

Commit 7f50dae

Browse files
authored
Add missing SmartDEX protocol addresses (#16856)
1 parent f05d81a commit 7f50dae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

projects/smartdex/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
const { getUniTVL } = require('../helper/unknownTokens')
2+
const { sumTokens2 } = require('../helper/unwrapLPs')
3+
const ADDRESSES = require('../helper/coreAssets.json')
4+
5+
// Addresses from https://docs.smardex.io/ultimate-synthetic-delta-neutral/the-usdn-protocol/addresses
6+
const USDN_PROTCOL = '0x656cB8C6d154Aad29d8771384089be5B5141f01a';
7+
const DIP_ACCUMULATOR = '0xaeBcc85a5594e687F6B302405E6E92D616826e03';
8+
9+
const getEthereumTVL = async (api) => {
10+
const tvl = await sumTokens2({ api, tokens: [ADDRESSES.ethereum.WSTETH], owners: [USDN_PROTCOL, DIP_ACCUMULATOR] })
11+
return tvl
12+
}
213

314
module.exports = {
415
misrepresentedTokens: true,
516
polygon: {
617
tvl: getUniTVL({ factory: '0xBE087BeD88539d28664c9998FE3f180ea7b9749C', useDefaultCoreAssets: true, }),
718
},
19+
ethereum: {
20+
tvl: getEthereumTVL,
21+
},
822
};

0 commit comments

Comments
 (0)