-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Basin on Arbitrum #11910
Basin on Arbitrum #11910
Conversation
The adapter at projects/basin exports TVL:
|
The adapter at projects/basin exports TVL:
|
@soilking can you check if my implementation is correct? I manually checked all the wells on arbitrum, maybe the upgraded event pulls unrelated contracts? |
The arbitrum wells can be upgradeable, the addresses emitted in the |
do you have an example? |
*like a transaction with ungraded event |
Here is an example: https://arbiscan.io/tx/0xe530c3ced2dd6ff9e7e8a4e8b721150ebd3de3420935d9b06ac557f296bb7532#eventlog What are you trying to achieve? I believe the original code I submitted was accounting for this properly. |
hmm, I see what you are doing, but the issue with that implementation is, as time goes by, there will be more event log calls, in my implementation, it is always against one contract, but in your case, it grows. It is sort of hidden, but we cache each of these event log result (per target), and if we dont cache, it is too expensive. But my implementation is wrong, is there some other way to get the upgraded contract? the new contract is not verified |
Unfortunately this is the only way to get it on chain currently. Would it work for you if instead we pulled the list of wells from our subgraph? The upgradeable wells have a hardcoded mapping there until an on chain solution can be developed. |
yup, this is a good solution |
*pulling list of wells from subgraph |
This reverts commit 583d529.
The adapter at projects/basin exports TVL:
|
Great, this is done |
The adapter at projects/basin exports TVL:
|
Updated adapter for Basin protocol to include tvl on Arbitrum. Otherwise, none of the other info/metadata etc is changed.