Skip to content

docs: fix and clarify natspec inconsistencies - #1071

Open
SovaSlava wants to merge 1 commit into
Uniswap:mainfrom
SovaSlava:docs/fix-natspec-inconsistencies
Open

SovaSlava wants to merge 1 commit into
Uniswap:mainfrom
SovaSlava:docs/fix-natspec-inconsistencies

Conversation

@SovaSlava

Copy link
Copy Markdown

Related Issue

#1070

Description of changes

Fix and clarify natspec inconsistencies.
Below is the list of identified inconsistencies and proposed clarifications:

File / Location Current NatSpec Proposed NatSpec Rationale
src/interfaces/IProtocolFees.sol#L40 This will revert if the contract is unlocked Remove this comment The collectProtocolFees function does not contain any check regarding the state of the pool (locked or unlocked).
src/interfaces/IPoolManager.sol#L111 The only functions callable without an unlocking are initialize and updateDynamicLPFee The only functions callable without an unlocking are initialize, updateDynamicLPFee and sync Function sync() also callable without unlocking.
src/interfaces/IPoolManager.sol#55 The fee collected upon every swap in the pool, denominated in hundredths of a bip The fee collected upon every swap in the pool, denominated in hundredths of a bip, or DYNAMIC_FEE_FLAG if the fee is dynamically set by the hook When a pool uses dynamic fees, the fee parameter in the Initialize event contains the value from the DYNAMIC_FEE_FLAG constant

This branch has not been deployed

No deployments
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