Skip to content

Dynamic fee pools have 0.03% protocol fee instead of documented 0% #251

@idle1dev

Description

@idle1dev

According to the https://docs.pancakeswap.finance/trade/pancakeswap-infinity/pool-types, dynamic fee pools should have 0% protocol fee.
However, pools created with DYNAMIC_FEE_FLAG are currently being charged 0.03% protocol fee.

Evidence:
I deployed a hook on Base mainnet implementing beforeSwap with proper lpFeeOverride and DYNAMIC_FEE_FLAG:

I suspect the root cause is in ProtocolFeeController.sol, line 39: uint24 public defaultProtocolFeeForDynamicFeePool = 300; // 0.03%
Could you please clarify whether:

  1. The implementation should be updated to match the documented 0% protocol fee, or
  2. The documentation should be updated to reflect the actual 0.03% fee Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions