Skip to content

fix: correct deprecated function reference in action dispatch comments#559

Open
BhariGowda wants to merge 1 commit into
Uniswap:mainfrom
BhariGowda:fix/deprecated-comment-references
Open

fix: correct deprecated function reference in action dispatch comments#559
BhariGowda wants to merge 1 commit into
Uniswap:mainfrom
BhariGowda:fix/deprecated-comment-references

Conversation

@BhariGowda

Copy link
Copy Markdown

Summary

In PositionManager.sol, the action dispatch comments for INCREASE_LIQUIDITY_FROM_DELTAS and MINT_POSITION_FROM_DELTAS incorrectly reference the deprecated functions themselves as the "see also" guidance, rather than pointing developers to the safe replacements.

Changes

Line 203 (before):
// DEPRECATED - vulnerable to sandwich attacks, do not use. See _increaseFromDeltas().

Line 203 (after):
// DEPRECATED - vulnerable to sandwich attacks, do not use. See _increase() instead.

Line 227 (before):
// DEPRECATED - vulnerable to sandwich attacks, do not use. See _mintFromDeltas().

Line 227 (after):
// DEPRECATED - vulnerable to sandwich attacks, do not use. See _mint() instead.

The function-level NatSpec at lines 308 and 392 already correctly references _increase() and _mint() — this PR aligns the action dispatch comments to match.

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.

1 participant