Skip to content

Commit

Permalink
Merge pull request #2 from yieldnest/add-ynlsde
Browse files Browse the repository at this point in the history
feat: add ynLSDe
  • Loading branch information
johnnyonline authored Aug 19, 2024
2 parents bcc4b1b + f8ced81 commit 557e61c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions projects/yieldnest/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@

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

const token = '0x09db87a538bd693e9d08544577d5ccfaa6373a48'
const YN_ETH = '0x09db87a538bd693e9d08544577d5ccfaa6373a48'
const YN_LSDE = '0x35Ec69A77B79c255e5d47D5A3BdbEFEfE342630c'

module.exports = {
ethereum: {
tvl: async (api) => {
const ethBalance = await api.call({ abi: 'uint256:totalAssets', target: token })
api.add(ADDRESSES.null, ethBalance)
const ynethBalance = await api.call({ abi: 'uint256:totalAssets', target: YN_ETH })
api.add(ADDRESSES.null, ynethBalance)

const ynlsdeBalance = await api.call({ abi: 'uint256:totalAssets', target: YN_LSDE })
api.add(ADDRESSES.null, ynlsdeBalance)

return api.getBalances()
}
},
Expand Down

0 comments on commit 557e61c

Please sign in to comment.