Skip to content

Update Vaults, Remove LRT page and All Stake Assets #14418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

vvalecha519
Copy link
Contributor

@vvalecha519 vvalecha519 commented Apr 22, 2025

Goal:
a) Total TVL -> etherfi_tvl = await api.call({ target: '0xAB7590CeE3Ef1A863E9A5877fBB82D9bE11504da', abi: 'function categoryTVL(string _category) view returns (uint256)', params: ['tvl'] }
b) Stake Page includes EBTC, EUSD, EETH supplies but double counted with total tvl from above (not sure how to do this)
c) Vaults includes all vaults and double counted with stake assets

@@ -12,14 +44,25 @@ module.exports = {
ethereum: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only chain should be Ethereum

Copy link
Contributor Author

@vvalecha519 vvalecha519 Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is ethfi staking on arbitrum and base. This is why we have multiple chains and this was done before.

The main focus is to have:

  1. correct total etherfi total which should be
    tvl: async ({ timestamp }) => { //total tvl not stake tvl
    let etherfi_tvl = 0
    const api = new sdk.ChainApi({ timestamp, chain: 'optimism' })
    const block = await api.getBlock()
    //total tvl not stake tvl
    if (block < 122693890) {
    etherfi_tvl = await api.call({ target: '0x6329004E903B7F420245E7aF3f355186f2432466', abi: 'uint256:getTvl' })
    } else {
    etherfi_tvl = await api.call({ target: '0xAB7590CeE3Ef1A863E9A5877fBB82D9bE11504da', abi: 'function categoryTVL(string _category) view returns (uint256)', params: ['tvl'] })
    }

    return {
    [nullAddress]: etherfi_tvl
    }
    }
    Screenshot 2025-04-23 at 3 03 52 PM

    1. Correct stake tvl:
      sum of:
      a) EETH totalSupply on Ethereum,
      b) EBTC totalSupply on Ethereum, Scroll and Berachain
      EUSD on Ethereum and Scroll

Screenshot 2025-04-23 at 3 04 13 PM

  1. Correct liquid tvl which means including all our vaults
    Screenshot 2025-04-23 at 3 05 35 PM

  2. Get rid of etherfi Vault page as it is redundant

    Screenshot 2025-04-23 at 3 05 49 PM

@Define101 Define101 self-assigned this Apr 23, 2025
@vvalecha519 vvalecha519 requested a review from Define101 April 23, 2025 20:45
@vvalecha519
Copy link
Contributor Author

Update @Define101

-Fixed staking to only be ethfi
-made ebtc get all underlying
-updated liquid tvl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants