Define and Implement Dynamic Fee Update Event #926
Closed
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.
Related Issue
#920
Description of changes
This PR declares a new event
DynamicLPFeeUpdated
within theIPoolManager
contract (found inIPoolManager.sol
) which is essentially an interface contract to be inherited by thePoolManager
contract (found inPoolManager.sol
). The new event is emitted whenever the functionupdateDynamicLPFee
in is called, and is called on the last line of the function definition to ensure it is only called in the case that the function has executed properly.In using
grep -rl "is IPoolManager" --include="*.sol" .
We can see that the only two contracts in the
v4-core
repo which inherit fromIPoolManager
are in./src/test/ProxyPoolManager.sol
and./src/test/ProxyPoolManager.sol
. I’ve implemented the event emissions appropriately in both cases.