-
Notifications
You must be signed in to change notification settings - Fork 945
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
chore: rename instances of "delta" to "deltas" #738
base: main
Are you sure you want to change the base?
Conversation
Just renaming the variables generally does not cause such a large gas difference |
these gas snapshots changed regardless of the name change (just cloning main and running forge test) |
Do you run using --isolate? |
ah ok got it thanks |
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.
tests failing, need to fix imports
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.
CI still broken! gotta lint
Related Issue
BalanceDelta and BeforeSwapDelta are custom types of 2 int128s packed into a single 32 byte slot. However, other contexts like CurrencyDelta refer to a single value.
This singular naming scheme is confusing.
Description of changes
Rename BalanceDelta, BeforeSwapDelta, and other "delta" namings to plural form.
Rename hook flags to "ReturnDeltas" except for afterSwap (which only returns one delta).