IFeeDispatcher

Git Source

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

NameTypeDescription
recipientsaddress[]The addresses of recipients
splitsuint256[]The percentage of each recipient in basis points

CommissionWithdrawn

Emitted when the integrator withdraws ETH

event CommissionWithdrawn(address indexed withdrawer, uint256 amountWithdrawn);

Parameters

NameTypeDescription
withdraweraddressaddress withdrawing the ETH
amountWithdrawnuint256amount of ETH withdrawn

Errors

UnequalLengths

Thrown when functions are given lists of different length in batch arguments

error UnequalLengths(uint256 lengthA, uint256 lengthB);

Parameters

NameTypeDescription
lengthAuint256First argument length
lengthBuint256Second argument length

Reentrancy

Thrown when a function is called while the contract is locked

error Reentrancy();