ReceiveSkeleton
Implementation of the ReceiveSkeleton skeleton facet for the TMI-Fraction Protocol.
_This facet serves as a core component (skeleton) of a TMI-Fraction Platform, enabling the receipt of gathered funds (from purchased fractions) allocated to campaigns.
The process of receiving a campaign's gathered funds is triggered when receiveFunds()
is executed, following a sequential
pipeline of three phases:
-
State Check: The Platform interacts with its
ReceiveState
Internal facet to verify that the current state of the targeted campaign is the correct state for funds receipt to occur. -
Eligibility Check: The Platform interacts with its
ReceiveEligibility
Internal facet to verify the eligibility of the user (caller) attempting to receive the funds (e.g., only the creator of the campaign is allowed). -
Receive Action: The Platform interacts with its
DoReceive
Internal facet to transfer the funds gathered from the Platform to the user (caller)._
FundsReceived
Emitted at receiveFunds()
.
receiveFunds
Transfers the specified campaign's gathered funds (from purchased fractions) from the Platform to the user.
_User must meet eligibility criteria to receive the campaign's funds (see receive
Eligibility internal facets).
Emits a {FundsReceived} event._
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The unique identifier of the targeted campaign. |