Repository navigation
docs: fix stale NatSpec and remove dead code after PR #886 - #1073
Open
rakhmadaa-gif wants to merge 2 commits into
Open
rakhmadaa-gif wants to merge 2 commits into
rakhmadaa-gif wants to merge 2 commits into
Conversation
- Remove obsolete 'will revert if unlocked' from collectProtocolFees (lock check was deliberately removed in PR Uniswap#886 ToB-UNI4-3 fix) - Update unlock comment to list all always-callable functions (sync/collectProtocolFees/ERC6909 also callable, lock check removed)
…swap#886) The _isUnlocked function and its overrides have no callers since PR Uniswap#886 removed the lock check from collectProtocolFees. Clean up the vestigial declaration and implementations.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two documentation-only cleanups following PR #886:
1. Stale NatSpec comments
IProtocolFees.sol:40— Remove obsolete@dev This will revert if the contract is unlocked. The lock check was deliberately removed in PR Solve ToB-UNI4-3 without restricting sync #886 (ToB-UNI4-3 fix) to allowcollectProtocolFeesduring an unlock, but the NatSpec was never updated.IPoolManager.sol:111— Update incomplete@dev The only functions callable without an unlocking are initialize and updateDynamicLPFee. PR Solve ToB-UNI4-3 without restricting sync #886 also removed the lock check fromsync, andcollectProtocolFees+ the ERC6909 functions were always callable. The comment now lists all always-callable functions.2. Dead code removal
_isUnlocked()abstract declaration (ProtocolFees.sol) and its overrides (PoolManager.sol,ProxyPoolManager.sol). The last caller was the lock check incollectProtocolFees, removed in PR Solve ToB-UNI4-3 without restricting sync #886. These are now vestigial.Impact
Zero functional change. Pure documentation hygiene and dead code cleanup. All tests pass (forge build succeeds).
Commits
Split into two commits so maintainers can cherry-pick independently:
docs: fix stale NatSpec after PR #886— NatSpec updates onlyrefactor: remove dead _isUnlocked code— Dead code removalIf only the NatSpec fixes are desired, the second commit can be dropped.