Skip to main content

Beneficiary

IBeneficiary

distribute

function distribute() external payable

Distribute to beneficiaries

IDABeneficiaryInternal

_initializeIDABeneficiary

function _initializeIDABeneficiary(contract ISETH _token, struct IIDABeneficiaryInternal.Beneficiary[] _beneficiaries) internal

Initialize beneficiary

_isInitialized

function _isInitialized() internal view returns (bool)

Check if initialized

_setToken

function _setToken(contract ISETH _token) internal

Set token

_updateBeneficiaryUnits

function _updateBeneficiaryUnits(struct IIDABeneficiaryInternal.Beneficiary[] _beneficiaries) internal

Update beneficiary units

_distribute

function _distribute(uint256 value) internal

Distribute to beneficiaries

IDABeneficiaryStorage

Layout

struct Layout {
bool isInitialized;
contract ISETH token;
}

layout

function layout() internal pure returns (struct IDABeneficiaryStorage.Layout l)

IIDABeneficiary

updateBeneficiaryUnits

function updateBeneficiaryUnits(struct IIDABeneficiaryInternal.Beneficiary[] _beneficiaries) external

Update beneficiary units

IIDABeneficiaryInternal

Beneficiary

struct Beneficiary {
address subscriber;
uint128 units;
}

TokenSet

event TokenSet(address token)

BeneficiaryUnitsUpdated

event BeneficiaryUnitsUpdated(address subscriber, uint128 units)

Distributed

event Distributed(uint256 amount)

IDABeneficiaryFacet

Beneficiary implemented using a Superfluid IDA index

COMPONENT_ROLE

bytes32 COMPONENT_ROLE

initializeIDABeneficiary

function initializeIDABeneficiary(contract ISETH _token, struct IIDABeneficiaryInternal.Beneficiary[] _beneficiaries) external

Initialize beneficiary

initializeIDABeneficiary

function initializeIDABeneficiary(address _owner, contract ISETH _token, struct IIDABeneficiaryInternal.Beneficiary[] _beneficiaries) external

Initialize beneficiary

updateBeneficiaryUnits

function updateBeneficiaryUnits(struct IIDABeneficiaryInternal.Beneficiary[] _beneficiaries) external

Update beneficiaries

distribute

function distribute() external payable

Distribute to beneficiaries