EeseeFeeSplitter

EeseeFeeSplitter

This contract can be used when payments need to be received by a group of contracts and split proportionately to some number of shares they own. Addapted from Openzeppelin's PaymentSplitter.

ESE

contract IERC20 ESE

ESE token.

totalShares

uint256 totalShares

Total shares from all payees.

totalReleased

uint256 totalReleased

Total ESE tokens released.

shares

mapping(address => uint256) shares

Payees' shares.

released

mapping(address => uint256) released

Payees' released ESE tokens.

payees

address[] payees

Payee accounts.

release

function release(address account) external returns (uint256 payment)

Release one of the payee's proportional payment.

Parameters

Inherited from IEeseeFeeSplitter

ESE

function ESE() external view returns (contract IERC20)

totalShares

function totalShares() external view returns (uint256)

totalReleased

function totalReleased() external view returns (uint256)

shares

function shares(address) external view returns (uint256)

released

function released(address) external view returns (uint256)

payees

function payees(uint256) external view returns (address)

PaymentReleased

event PaymentReleased(address to, uint256 amount)

Last updated