FeePolicy
Canonical fee caps and pure validators for tenant platform fees and
market-group fee schedules.
Group fees are charged on gross reserve-token flow per operation. The
tenant platform fee is then applied as a slice of group-fee revenue, not
as an additive surcharge on the user-facing group fee.
groupFeeForValidation
Section titled “groupFeeForValidation”function groupFeeForValidation(DataTypes.GroupFees fees, GroupFeesValidation result) returns (MicroBps) pureGroupFeesValidation
Section titled “GroupFeesValidation”Enum FeePolicy.GroupFeesValidation.
ValidBuyExceedsMaximumSellExceedsMaximumBorrowExceedsMaximumExerciseOptionExceedsMaximum
MAX_GROUP_FEE_MICRO_BPS
Section titled “MAX_GROUP_FEE_MICRO_BPS”uint64 public constant MAX_GROUP_FEE_MICRO_BPSMAX_PLATFORM_FEE_MICRO_BPS
Section titled “MAX_PLATFORM_FEE_MICRO_BPS”uint64 public constant MAX_PLATFORM_FEE_MICRO_BPSMICRO_BPS_ONE
Section titled “MICRO_BPS_ONE”uint64 public constant MICRO_BPS_ONEPlatformFeeValidation
Section titled “PlatformFeeValidation”Enum FeePolicy.PlatformFeeValidation.
ValidExceedsMaximum
requireValidGroupFees
Section titled “requireValidGroupFees”function requireValidGroupFees(DataTypes.GroupFees fees) purerequireValidPlatformFee
Section titled “requireValidPlatformFee”function requireValidPlatformFee(MicroBps fee) purevalidateGroupFees
Section titled “validateGroupFees”function validateGroupFees(DataTypes.GroupFees fees) returns (GroupFeesValidation) purevalidatePlatformFee
Section titled “validatePlatformFee”function validatePlatformFee(MicroBps fee) returns (PlatformFeeValidation) pure