ReceiveAllGatheredFundsFacetStorage
ReceiveAllGatheredFundsFacetStorage
AlreadyInitialized
Thrown when attempting to re-initialize.
InvalidZeroPostReceiveState
Thrown when attempting to set the postReceiveState to zero.
STORAGE_SLOT
================================================== STORAGE =================================================
Unique identifier for the storage slot where the Layout struct is stored. Derived from the ERC7201 formula. STORAGE_SLOT: 0x15037dc593b54e2759312a2bce2ef10c0f0d195166a48e6c6f433f3960561600
Layout
layout
Retrieves a reference to the Layout struct stored at a specified storage slot
initDoReceiveFacet
doReceive
Progresses a campaign's state to the configured postReceiveState and interacts with the employed FundingPacket facet
to transfer the campaign's total gathered funding packets from the platform to account.
The invocation of IFundingPacketFacet.transferFundingPackets() occurs only if totalPacketsGathered is nonzero.
This is crucial because a campaign's totalPacketsGathered can be ultimately zero (e.g., 100% purchase discount mechanism).
Some implementations of tokens used as funding currency may require nonzero amounts, potentially causing a revert in their
transfer functions. This safeguard ensures the receive process remains stable.
Parameters
| Name | Type | Description |
|---|---|---|
| l | struct ReceiveAllGatheredFundsFacetStorage.Layout | A reference to the Layout struct in storage. |
| campaignId | uint256 | The ID of the targeted campaign. |
| account | address | The account (e.g., issuer/creator) eligibile to receive the total gathered funds. |

