Skip to content
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

feat: update treehouse adapters #11737

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions projects/treehouse/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
const ADDRESSES = require('../helper/coreAssets.json');
const { sumTokensExport } = require('../helper/unwrapLPs');
const ADDRESSES = require('../helper/coreAssets.json')

module.exports = {
start: 1725926400, // Tuesday, September 10, 2024 12:00:00 AM
ethereum: {
tvl: sumTokensExport({ owner: '0x551d155760ae96050439AD24Ae98A96c765d761B', tokens: [ADDRESSES.ethereum.WSTETH], }),
const IAU_tETH = '0x1B6238E95bBCABEE58997c99BaDD4154ad68BA92'

async function ethTvl(api) {
const iauSupply = await api.call({
abi: 'erc20:totalSupply',
target:IAU_tETH,
});

api.add(ADDRESSES.ethereum.WSTETH, iauSupply)
}
}


module.exports = {
methodology: 'Staked tokens are counted as TVL based on the chain that they are staked on and where the liquidity tokens are issued.',
start: 1725926400, // Tuesday, September 10, 2024 12:00:00 AM
ethereum: {
tvl: ethTvl,
}
};
Loading