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

Update to Deploy 11 #502

Merged
merged 8 commits into from
Nov 28, 2024
Merged

Update to Deploy 11 #502

merged 8 commits into from
Nov 28, 2024

Conversation

brunoguerios
Copy link
Member

Closes #499

Comment on lines +218 to +220
// TODO: double check if comparing query outputs against balanceDeltas isn't redundant with query tests
// if yes, we should be able to remove query tests (and avoid relying on a fixed blockNumber)
describe.skip('query method should return correct updated', () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Highlighting this as it might be the one that sparks a bit of discussion.
Main question is:

do we need to test queryOutputs against hardcoded amounts?

I have a feeling that testing queryOutput against balanceDeltas from the actual transaction should be enough.
If we manage to remove these, we won't need to rely on a fixed blockNumber for these tests.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Bruno's feeling. Doesn't seem like the hardcoded amounts here add meaningful value

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping in mind that after we launch there will be no new deployments and fixed block number will be permanent so it's probably not going to be that important soon. The main benefit I see is it potentially catches if changes break anything unexpectedly (e.g. results should always be the same). Its maybe not that important, especially if we're definitely checking that the query result is at least > 0 in assertSwapExactIn/Out but I'm not 100% sure that is the case and it would need to be confirmed first.

Comment on lines +180 to +181
// FIXME: zeroOutDeltas is swapping a huge amount (~200 WETH) and hitting MaxInRatio
describe.skip('Nested pool', () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is indeed not working, but I'd suggest we fix this in a separate PR, so we unblock the deploy update. Let me know what you think and I'll create a ticker over here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with kicking this down the road

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracking in this issue: #503 ideally address it next.

Copy link
Member

@MattPereira MattPereira Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This v3 pool creation script is still kinda messy and would benefit from Permit2helper method, but seems like decent pinch option for deploying v3 pools and could start discussion about examples that are set up to send transactions to live network

No worries if you prefer to dump it for this PR, just thought I'd offer the option for consideration

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can leave it in for now but should be tidied as part of wider example changes.

Copy link
Member

@johngrantuk johngrantuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some outstanding items to address in follow up but will release now to unblock others.

@johngrantuk johngrantuk merged commit 01e403e into main Nov 28, 2024
4 checks passed
@johngrantuk johngrantuk deleted the deploy-11 branch November 28, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Deploy11
3 participants