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

store boolean instead of address #493

Merged
merged 5 commits into from
Mar 11, 2024
Merged

store boolean instead of address #493

merged 5 commits into from
Mar 11, 2024

Conversation

dianakocsis
Copy link
Contributor

Related Issue

Which issue does this pull request resolve?
store boolean for lock #487

Description of changes

Removes storing the locker address and now stores a boolean instead

Copy link
Contributor

@hensha256 hensha256 left a comment

Choose a reason for hiding this comment

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

Looking good!! Just a couple of little things 😄 Nice to see the gas went down a bit with it too

src/PoolManager.sol Show resolved Hide resolved
src/libraries/Locker.sol Outdated Show resolved Hide resolved
src/test/PoolNestedActionsTest.sol Show resolved Hide resolved
test/Locker.t.sol Outdated Show resolved Hide resolved
test/Lock.t.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@hensha256 hensha256 left a comment

Choose a reason for hiding this comment

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

Just a couple more things! We're nearly there!

@hensha256 hensha256 linked an issue Mar 5, 2024 that may be closed by this pull request
@dianakocsis dianakocsis force-pushed the store-boolean-for-lock branch from bc5c2f1 to e3b5a9e Compare March 7, 2024 15:07
hensha256
hensha256 previously approved these changes Mar 11, 2024
Copy link
Contributor

@hensha256 hensha256 left a comment

Choose a reason for hiding this comment

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

lgtm!

snreynolds
snreynolds previously approved these changes Mar 11, 2024
Copy link
Member

@snreynolds snreynolds left a comment

Choose a reason for hiding this comment

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

looks good! one tiny nit

(address locker) = manager.getLocker();
assertTrue(locker != address(this), "Locker wrong");

function _swap(address locker) internal {
Copy link
Member

Choose a reason for hiding this comment

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

super nit but this really is now the caller right? Seems like we renamed (which I like better!)

@dianakocsis dianakocsis dismissed stale reviews from snreynolds and hensha256 via 34f4827 March 11, 2024 20:03
Copy link
Member

@snreynolds snreynolds left a comment

Choose a reason for hiding this comment

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

lgtm!

@dianakocsis dianakocsis merged commit 702f547 into main Mar 11, 2024
5 checks passed
@dianakocsis dianakocsis deleted the store-boolean-for-lock branch March 11, 2024 20:18
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.

store boolean for lock
3 participants