Fraction ProtocolinternalFacetspurchasePhaseFacetsdoPurchaseFacetsmultiplePartiesTransferPackets

MultiplePartiesTransferPacketsFacetStorage

MultiplePartiesTransferPacketsFacetStorage

InvalidNonEqualArraysLength

error InvalidNonEqualArraysLength(uint256 addressesLength, uint256 proportionsLength)

Thrown when attempting to setAndCheck with non equal addresses and proportions arrays length.

WrongProportionsInput

error WrongProportionsInput()

Thrown when attempting to setAndCheck with totalProportion not equal to 100%.

InvalidInputAddresses

error InvalidInputAddresses()

Thrown when attempting to setAndCheck with zero addresses.

STORAGE_SLOT

bytes32 STORAGE_SLOT

================================================== STORAGE =================================================

Unique identifier for the storage slot where the Layout struct is stored. Derived from the ERC7201 formula. STORAGE_SLOT: TO-DO

Layout

struct Layout {
  mapping(uint256 => struct MultiplePartiesTransferPacketsFacetStorage.CampaignInfo) campaignsInfo;
}

CampaignInfo

struct CampaignInfo {
  address[] addressesOfParties;
  uint256[] proportionsOfParties;
}

layout

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

Retrieves a reference to the Layout struct stored at a specified storage slot

setAndCheckDoPurchase

function setAndCheckDoPurchase(struct MultiplePartiesTransferPacketsFacetStorage.Layout l, bytes postFractionsAmountData) internal

Sets the addresses to receive the packets and also what proportion each address should receive. param addressesOfParties The addresses of the parties to receive the packets. param proportionsOfParties The proportion that each address of the parties will receive.

doPurchase

function doPurchase(struct MultiplePartiesTransferPacketsFacetStorage.Layout l, uint256 campaignId, address account, uint256 amountOfFractions, uint256 pricePerFraction) internal

On this page