Skip to content

Commit

Permalink
add swellchain assets
Browse files Browse the repository at this point in the history
  • Loading branch information
darvinrio committed Jan 14, 2025
1 parent 52546bf commit e8ea933
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions projects/swell-earn-eth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,19 @@ const vaultTokens = [
"0x78Fc2c2eD1A4cDb5402365934aE5648aDAd094d0", // Re7 WETH
]

const swellchainTokens = [
'0x18d33689AE5d02649a859A1CF16c9f0563975258', // rswETH
'0x09341022ea237a4DB1644DE7CCf8FA0e489D85B7', // swETH
]

const tokens = [
...ethTokens,
...pendleLPTokens,
...vaultTokens,
]


const tvl = async (api) => {
const ethTvl = async (api) => {
return sumTokens2({
api,
owner: earnETHVault, tokens,
Expand All @@ -52,8 +57,16 @@ const tvl = async (api) => {
})
}

const swellchainTvl = async (api) => {
return sumTokens2({
api,
owner: earnETHVault, swellchainTokens
})
}

module.exports = {
methodology: 'TVL represents the sum of tokens deposited in the vault + LP positions',
doublecounted: true,
ethereum: { tvl }
ethereum: { ethTvl },
swellchain: { swellchainTvl }
}

0 comments on commit e8ea933

Please sign in to comment.