Skip to content

feat: add fee override#107

Open
marktoda wants to merge 9 commits intomainfrom
allow-v3-fee-override
Open

feat: add fee override#107
marktoda wants to merge 9 commits intomainfrom
allow-v3-fee-override

Conversation

@marktoda
Copy link
Contributor

@marktoda marktoda commented Dec 8, 2025

This commit adds behavior where the fee setter can override the fee for specific pools if needed

This commit adds behavior where the fee setter can override the fee for
specific pools if needed
/// @param pool The pool address
/// @param feeTier The fee tier of the pool (used for default lookup)
/// @return The fee value to apply (0 if sentinel, override if set, otherwise default)
function _getEffectiveFee(address pool, uint24 feeTier) internal view returns (uint8) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of hitting the defaultFees path last, we can check that first unless you think it will be most common to have an override value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in 194d05e

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.

2 participants