Skip to main content

IFeeSchedule

Title: IFeeSchedule

Interface for the FeeSchedule registry used by PaymentProcessor.

PaymentProcessor calls resolveFees once per execution to determine the effective protocol and keeper fee rates for a given module. If no tier is assigned, the schedule returns protocol-wide defaults.

Functions

resolveFees

Resolves the effective fee rates for a module.

Returns the tier-specific rates if the module has an active tier, otherwise returns the global default rates.

function resolveFees(address module)
external
view
returns (uint16 protocolFeeBps, uint16 keeperFeeBps);

Parameters

NameTypeDescription
moduleaddressAddress of the module being executed

Returns

NameTypeDescription
protocolFeeBpsuint16Protocol's cut of each payment (basis points, 0-10000)
keeperFeeBpsuint16Keeper's share of the protocol fee (basis points, 0-10000)