-
Notifications
You must be signed in to change notification settings - Fork 39
Etherfi integration #97
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?
Conversation
816d018 to
16762a0
Compare
| // This test is currently broken due to a bug in runPoolBehaviour | ||
| // with constant price pools. | ||
| // function testPoolBehaviourEtherfi() public { | ||
| // bytes32[] memory poolIds = new bytes32[](1); | ||
| // poolIds[0] = bytes32(0); | ||
| // runPoolBehaviourTest(adapter, poolIds); | ||
| // } |
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.
Can we fix this please?
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.
have you updated AdapterTest.sol runPoolBehaviourTest function so that it can manage constant prices?
| @@ -0,0 +1,322 @@ | |||
| syntax = "proto3"; | |||
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.
Is this used?
| expected_components: | ||
| - id: "0x308861A430be4cce5502d0A12724771Fc6DaF216" # Liquidity Pool Address | ||
| tokens: | ||
| - "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" # ETH |
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.
We use address(0) for native eth
| let weeth_hex = format!("0x{}", hex::encode(WEETH_ADDRESS)); | ||
| let balance_deltas = block | ||
| .logs() | ||
| // .filter(|log| log.address()) // filter out logs that are not from the pool contract |
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.
What is this? do we need it or not?
| .get_last(format!("pool:{}", liquidity_pool_hex)) | ||
| .is_some() | ||
| { | ||
| substreams::log::info!("Liquidity Pool Deposit: +ETH {}", ev.amount); |
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.
Please remove substreams logs, we had issues with them in prod in the past. You can use them to debug but don't commit them
| - "etherfi_weeth_pool" | ||
|
|
||
| # A list of tests. | ||
| tests: |
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.
I couldn't run these tests, I think it's due to an archive node issue on my side. Can you confirm that they pass for you please? I'll try to fix my env and run them ASAP
| - tycho/evm/v1/utils.proto | ||
| importPaths: | ||
| - ../../proto | ||
| - ./proto |
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.
Do we use this?
Remove unused files and unwanted changes, make the compilation work, and address CI issues
ed5e71f to
7925cd6
Compare
Integration tests fails due to the distance between the deployments and first deposit and wrap transactions.
etherfi_liquidity_pooldeployment at blockstart_block: 17664317, first deposit of ETH and mint of eETH atstop_block: 19796002start_block: 17664336, first wrap of eETH to weETH atstop_block: 19978024