-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
base: main
Are you sure you want to change the base?
Update Vaults, Remove LRT page and All Stake Assets #14418
Conversation
@@ -12,14 +44,25 @@ module.exports = { | |||
ethereum: { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:
-
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
}
}
- Correct stake tvl:
sum of:
a) EETH totalSupply on Ethereum,
b) EBTC totalSupply on Ethereum, Scroll and Berachain
EUSD on Ethereum and Scroll
- Correct stake tvl:
Update @Define101 -Fixed staking to only be ethfi |
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