IFeeDispatcher
Author: 0xvv @ Kiln
This contract contains functions to dispatch the ETH in a contract upon withdrawal.
Functions
withdrawCommission
Allows the integrator to withdraw the ETH in the contract.
function withdrawCommission() external;
Events
NewCommissionSplit
Emitted when the commission split is changed.
event NewCommissionSplit(address[] recipients, uint256[] splits);
Parameters
| Name | Type | Description |
|---|---|---|
recipients | address[] | The addresses of recipients |
splits | uint256[] | The percentage of each recipient in basis points |
CommissionWithdrawn
Emitted when the integrator withdraws ETH
event CommissionWithdrawn(address indexed withdrawer, uint256 amountWithdrawn);
Parameters
| Name | Type | Description |
|---|---|---|
withdrawer | address | address withdrawing the ETH |
amountWithdrawn | uint256 | amount of ETH withdrawn |
Errors
UnequalLengths
Thrown when functions are given lists of different length in batch arguments
error UnequalLengths(uint256 lengthA, uint256 lengthB);
Parameters
| Name | Type | Description |
|---|---|---|
lengthA | uint256 | First argument length |
lengthB | uint256 | Second argument length |
Reentrancy
Thrown when a function is called while the contract is locked
error Reentrancy();