IFeeManager Interface
Interface
interface IFeeManager {
/// @notice Computes the effective fee for a swap
/// @param fee The base fee in hundredths of a bip
/// @return The computed fee in hundredths of a bip
function computeFee(uint24 fee) external returns (uint24);
}Purpose
uint24 effectiveFee = IFeeManager(feeManager).computeFee(fee);Parameters
fee
Type
Description
Return Value
Type
Description
Implementations
NoDiscount
TieredDiscount
OverridableFeeManager
Creating Custom Fee Managers
Basic Template
Example: Time-Based Fees
Example: Holder-Based Tiers
Example: Volume-Based Fees
Integration Points
Pool Integration
Context Available
Context
Description
Gas Considerations
Complexity
Approximate Gas
Security Considerations
Reentrancy
DOS Prevention
Access Control
Related
Last updated