FeeDistributor
FeeAllocation
Share of incoming fees given to recipient
.
Fields
Name | Type | Description |
---|---|---|
recipient | address | Who these fees should be delivered to |
feeRatio | FPUnsigned | Fraction of incoming fees sent to this recipient. In range (0, 1] |
pendingFees | FPUnsigned | Accumulated fees that have not yet been delivered |
distributionType | enum DistributionType | See DistributionType |
struct FeeAllocation {
address recipient;
FPUnsigned feeRatio;
FPUnsigned pendingFees;
enum DistributionType distributionType;
}
DistributionType
Either the type of a stored fee allocation, or a command to change the state.
Values
Name | Description |
---|---|
DELETED | Command only: Mark for fee distribution and deletion |
FORCE_DELETED | Command only: Mark for deletion. Any accrued fees will be lost!! |
DISABLED | State/Command: Temporarily disabled; does not accrue or distribute fees |
DIRECT | State/Command: Distribute fees via IERC20.transfer |
NOTIFY | State/Command: Distribute fees via IRewardRecipient.transferRewardAmount |
enum DistributionType {
DELETED,
FORCE_DELETED,
DISABLED,
DIRECT,
NOTIFY
}