Fraction ProtocolskeletonFacetsNIDpurchaseSkeletons
PurchaseSkeletonNoDiscountNID
Implementation of purchase skeleton for fractionalisation protocol.
This skeleton is a light version using amounts (instead of always decoding data). This skeleton can be used for any type of fraction asset. This skeleton is not using discount facets and should always be used with STABLE PRICE and NonFundedSubSkeletonNoDiscountNID. Note: Does not support vesting with Fractions it just supports Fractions without discount mechanisms.
UnauthorizedInitialization
Thrown when trying to initialize from non admin account.
FractionsPurchased
initializePurchaseSkeleton
Initialize Purchase Skeleton
Parameters
Name | Type | Description |
---|---|---|
signer_ | address | The address of the designated off-chain service that signs the transactions (NexeraID/Compilot). |
purchase
Purchase
Called by users to purchase fractions
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The campaign id. |
amountOfFractions | uint256 | The amount of fractions to be purchased. |
bytes | ||
postPurchaseData | bytes | Data needed for the post purchase phase. |
chainId | uint32 | The chain id to receive fractions to |