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: gas optimization #28

Merged
merged 12 commits into from
May 7, 2024
Merged

feat: gas optimization #28

merged 12 commits into from
May 7, 2024

Conversation

ChefMist
Copy link
Collaborator

@ChefMist ChefMist commented Apr 26, 2024

Gas optimization

  1. reservesOfVault no longer tracking eth balance
  2. optimise poolId.toId()
  3. various caching to save gas

ChefSnoopy
ChefSnoopy previously approved these changes Apr 26, 2024
@ChefMist ChefMist changed the title feat: updates gas opt: pool.toId() and not tracking eth in reserveOfVault Apr 30, 2024
@ChefMist ChefMist changed the title gas opt: pool.toId() and not tracking eth in reserveOfVault gas optimization May 2, 2024
@ChefMist ChefMist requested a review from chefburger May 2, 2024 01:35
@ChefMist ChefMist changed the title gas optimization feat: gas optimization May 2, 2024
@ChefSnoopy
Copy link
Collaborator

It seems that we only need to merge the PR 33 , and then don not need this PR ?

@ChefMist
Copy link
Collaborator Author

ChefMist commented May 7, 2024

It seems that we only need to merge the PR 33 , and then don not need this PR ?

we can assume #33 to a POC and won't be merge anytime soon (theres still test required and merge conflict to resolve) -- where this PR have gas optimization around the repository

so the flow would be to merge this PR first and eventually see when we merge PR #33

ChefSnoopy
ChefSnoopy previously approved these changes May 7, 2024
Copy link
Collaborator

@chefburger chefburger left a comment

Choose a reason for hiding this comment

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

lgtm

@ChefMist ChefMist merged commit 134ca24 into main May 7, 2024
2 checks passed
@ChefMist ChefMist deleted the feat/updates branch May 7, 2024 07:00
@chefburger
Copy link
Collaborator

Not urgent... It just hit me that maybe we need to update the Invariant test to cover the native token case

CleanShot 2024-05-07 at 15 14 17@2x

@ChefMist
Copy link
Collaborator Author

ChefMist commented May 7, 2024

created #37 to track this 💪

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.

3 participants