-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cleanup PoolManager comments and Readme #715
Conversation
emit Initialize(id, key.currency0, key.currency1, key.fee, key.tickSpacing, key.hooks); | ||
} | ||
|
||
/// @inheritdoc IPoolManager | ||
function unlock(bytes calldata data) external override noDelegateCall returns (bytes memory result) { |
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.
Moved this to the top of the file, to have initialize, modify, swap, donate all together
@@ -264,10 +263,16 @@ contract PoolManager is IPoolManager, ProtocolFees, NoDelegateCall, ERC6909Claim | |||
key.hooks.afterDonate(key, amount0, amount1, hookData); | |||
} | |||
|
|||
/// @inheritdoc IPoolManager | |||
function sync(Currency currency) public returns (uint256 balance) { |
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.
moved this to be with take/settle/burn/mint
@@ -73,8 +73,9 @@ import {CustomRevert} from "./libraries/CustomRevert.sol"; | |||
// 444444444 444 | |||
// 44444 444 | |||
// 444 | |||
/// @notice Holds the state for all pools |
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.
this has been bugging me for DAYS lol
Forge code coverage:
|
Related Issue
Which issue does this pull request resolve?
Description of changes