-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pool.State Library (extsload) #579
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
Conversation
Forge code coverage:
|
I actually think we are probably almost ready for this change cause I don't think many of the open PRs change storage slots. Is it ready for review? |
@snreynolds the library is ready but still need to work the tests / remove the native getters & replace them with the library |
Signed-off-by: saucepoint <saucepoint@protonmail.com>
oops still blocked. #635 has a fix for too many rejected fuzz runs, so we'll merge that before this ones ready |
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.
looks great - is there a reason we change though getFeeGrowthGlobals -> getFeeGrowthGlobal? It still returns feeGrowthGlobal0 and feeGrowthGlobal1
* Add exttload to read transient storage from outside the contract * regenerate snapshots * Separate Extsload and Exttload * reduce amount of cases where vm.assume is used to reduce rejected inputs in high intensity fuzzing * make variable public * adjust natspec for exttload * Move isUnlocked, getNonzeroDeltaCount and currencyDelta view functions to pool state library * Don't bound swap amount to liquidity * Don't revert within the view function * regenerate gas snapshots * regenerate gas snapshots * regenerate gas snapshot for getting reserves * adjust comment to reflect new behaviour * include library code in gas snapshot * make slots bytes32 * rename PoolStateLibrary to StateLibrary * Separate transient and storage state libraries * adjust naming of test file * adjust comments to reflect new behaviour * Add sparse exttload * regenerate gas snapshots
…tTickInfo == getTickLiquidity
Related Issue
Closes #278
Description of changes
Added a library (
PoolStateLibrary
) for nested storage slots with extsload