Skip to content

Commit 555e024

Browse files
committed
update yieldnest DefiLlama#11341
1 parent 880fc5a commit 555e024

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

projects/yieldnest/index.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11

22
const ADDRESSES = require('../helper/coreAssets.json')
33

4-
const token = '0x09db87a538bd693e9d08544577d5ccfaa6373a48'
4+
const YN_ETH = '0x09db87a538bd693e9d08544577d5ccfaa6373a48'
5+
const YN_LSDE = '0x35Ec69A77B79c255e5d47D5A3BdbEFEfE342630c'
56

67
module.exports = {
78
ethereum: {
89
tvl: async (api) => {
9-
const ethBalance = await api.call({ abi: 'uint256:totalAssets', target: token })
10-
api.add(ADDRESSES.null, ethBalance)
11-
return api.getBalances()
10+
const ynethBalance = await api.call({ abi: 'uint256:totalAssets', target: YN_ETH })
11+
api.add(ADDRESSES.null, ynethBalance)
12+
const lsdRegistry = '0x323C933df2523D5b0C756210446eeE0fB84270fd'
13+
const lsds = await api.call({ abi: 'address[]:getAssets', target: lsdRegistry })
14+
const bals = await api.call({ abi: 'function assetBalances(address[]) view returns (uint256[])', target: YN_LSDE, params: [lsds] })
15+
api.add(lsds, bals)
1216
}
1317
},
1418
}

0 commit comments

Comments
 (0)