Skip to content

Commit

Permalink
add etherfi staking
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi authored and tlatkdgus1 committed Nov 25, 2024
1 parent 7f0860c commit a608879
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/ether-fi/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
const { staking } = require("../helper/staking");
const { nullAddress } = require("../helper/unwrapLPs");
const sdk = require('@defillama/sdk')

module.exports = {
doublecounted: true,
ethereum: {
staking: staking("0x86B5780b606940Eb59A062aA85a07959518c0161", "0xFe0c30065B384F05761f15d0CC899D4F9F9Cc0eB"),
tvl: async ({ timestamp }) => {
const api = new sdk.ChainApi({ timestamp, chain: 'optimism' })
await api.getBlock()
return {
[nullAddress]: await api.call({ target: '0x6329004E903B7F420245E7aF3f355186f2432466', abi: 'uint256:getTvl' })
}
}
},
arbitrum:{
staking: staking("0x86B5780b606940Eb59A062aA85a07959518c0161", "0x7189fb5b6504bbff6a852b13b7b82a3c118fdc27")
}
}

0 comments on commit a608879

Please sign in to comment.