This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
feat(teahouse): Add token-fetcher for Teahouse Vaults on Ethereum and Optimism #2455
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We delete teahouse.vaults.contract-position.ts on Optimism, and add teahouse.vaults.token-fetcher.ts on Ethereum and Optimism to fetch vault share's balance of address and price per share.
Checklist
How to test?
check vault share's balance of address and price per share.
test addresses :
Ethereum network :
0xe1b3c128c0d0a9e41ab3ff8f0984e5d5bef81677 ( share symbol : TeaETH)
-> balance about 198.77 TeaETH, price per share about : 1.00648535
0x478afa95f40bf5504cff32796c20bfd0b4e38330 (share symbol : OPTEA)
-> balance about 2651.93 OPTEA, price per share about : 1.0039168
Optimism network :
0x9ae039F9de94542f6f1b3FBA60223E6aA4f411Af ( share symbol : TeaOptions+P)
-> balance about 40893.9 TeaOptions+P, price per share about : 0.89040999
0xee1E02609a480BDC9D9651C200D90222b6691f03 ( share symbol : OPTEA+P)
-> balance about 62644.37 OPTEA+P, price per share about : 1.11617577
vaults will update price per share and balance.