Fraction ProtocolskeletonFacetsNID

BuybackSkeletonNID

Implementation of Buyback skeleton with NID gating integration.

UnauthorizedInitialization

error UnauthorizedInitialization(address account)

Thrown when trying to initialize from non admin account.

BuybackExecuted

event BuybackExecuted(uint256 campaignId, address buyer, uint256 buybackAmount)

initializeBuybackSkeleton

function initializeBuybackSkeleton(address signer_) external

Initialize Buyback Skeleton

Parameters

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

buyback

function buyback(uint256 campaignId, uint256 buybackAmount) external

Buyback gated with NID signature verification

Called by users to perform buyback

Parameters

NameTypeDescription
campaignIduint256The ID of the associated sale
buybackAmountuint256The amount required for buyback

On this page