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

Use solmate owned #520

Merged
merged 7 commits into from
Mar 28, 2024
Merged

Use solmate owned #520

merged 7 commits into from
Mar 28, 2024

Conversation

hensha256
Copy link
Contributor

Related Issue

#230 to meet EIP, and also good to rely on a battletested implementation

Description of changes

103987
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it just makes no sense 😭

Copy link
Collaborator

Choose a reason for hiding this comment

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

wonder if running forge test --isolate before and after this change will still introduce a diff

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good q i'll try it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope sadly they all still change - different values ofc but they still all change by like <200 ish. Could be that thats an expected result but its definitely weird

@hensha256 hensha256 linked an issue Mar 25, 2024 that may be closed by this pull request
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.

We don't currently have a test for this in main but since we're changing this code I think we may as well add one now and it will check the onlyOwner code in the dependency... But we should really be testing that setProtocolFeeController reverts if called not by the owner

@hensha256 hensha256 requested a review from snreynolds March 27, 2024 21:38
snreynolds
snreynolds previously approved these changes Mar 28, 2024
@@ -78,6 +77,16 @@ contract PoolManagerTest is Test, Deployers, GasSnapshot {
assertEq(address(manager.protocolFeeController()), address(feeController));
}

function test_setProtocolFeeController_failsIfNotOwner() public {
Copy link
Member

Choose a reason for hiding this comment

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

technically i think this will be moved out of this file (like a lot of other tests tbh) but since we haven't migrated the tests out of here I think its fine for this PR. and whoever is assigned with ProtocolFees.t.sol will move it (I think its me so I can do it when I pick that up).

@snreynolds snreynolds self-requested a review March 28, 2024 14:46
@hensha256 hensha256 merged commit b230769 into main Mar 28, 2024
5 checks passed
@hensha256 hensha256 deleted the use-solmate-owned branch March 28, 2024 15:12
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.

EIP-173 for Owned.sol
3 participants