Skip to content

Commit

Permalink
update fyde (#11248)
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Aug 9, 2024
1 parent 58c72db commit 7c99d1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion projects/fyde/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const RESTAKING_AGGREGATOR = "0x3f69F62e25441Cf72E362508f4d6711d53B05341";
const DEPOSIT_ESCROW = "0x63ec950633Eb85797477166084AD0a7121910470";
const ORACLE = "0x05198327206123E89c24ABd9A482316449bD2aEe"
const WETH = ADDRESSES.ethereum.WETH;
const YIELDMANAGER = "0xB615A7E4D1Ed426470Ac2Df14F3153fA2DcCC3ba"
const PTTOKENS = ["0x1c085195437738d73d75DC64bC5A3E098b7f93b1", "0x6ee2b5e19ecba773a352e5b21415dc419a700d1d"]

async function tvl(api) {
const tokens = await api.fetchList({ lengthAbi: 'getAssetsListLength', itemAbi: 'assetsList', target: FYDE_CONTRACT })
Expand Down Expand Up @@ -38,7 +40,10 @@ async function tvl(api) {

// add assets in the deposit escrow
const tokensEscrow = await api.fetchList({ lengthAbi: 'getAssetListLength', itemAbi: 'assetList', target: DEPOSIT_ESCROW })
return api.sumTokens({ tokens: tokensEscrow, owner: DEPOSIT_ESCROW })
return api.sumTokens({ ownerTokens: [
[tokensEscrow, DEPOSIT_ESCROW],
[PTTOKENS, YIELDMANAGER],
],})
}

module.exports = {
Expand Down

0 comments on commit 7c99d1d

Please sign in to comment.