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

error UnauthorizedInitialization(address account)

Thrown when trying to initialize from non admin account.

FractionsPurchased

event FractionsPurchased(uint256 campaignId, uint32 chainId, address purchaser, uint256 amountOfFractions)

initializePurchaseSkeleton

function initializePurchaseSkeleton(address signer_) external

Initialize Purchase Skeleton

Parameters

NameTypeDescription
signer_addressThe address of the designated off-chain service that signs the transactions (NexeraID/Compilot).

purchase

function purchase(uint256 campaignId, uint256 amountOfFractions, bytes, bytes postPurchaseData, uint32 chainId) external payable

Purchase

Called by users to purchase fractions

Parameters

NameTypeDescription
campaignIduint256The campaign id.
amountOfFractionsuint256The amount of fractions to be purchased.
bytes
postPurchaseDatabytesData needed for the post purchase phase.
chainIduint32The chain id to receive fractions to

On this page