Fraction ProtocolsubSkeletonFacetsNID

MarginCallSubSkeletonNID

Implementation of MarginCall Sub-Skeleton with NID gating integration.

UnauthorizedInitialization

error UnauthorizedInitialization(address account)

Thrown when trying to initialize from non admin account.

MarginAdded

event MarginAdded(uint256 campaignId, address account, uint256 packetsMarginAmount)

initializeMarginCallSubSkeleton

function initializeMarginCallSubSkeleton(address signer_) external

Initialize MarginCall SubSkeleton

Parameters

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

addMargin

function addMargin(uint256 campaignId, uint256 packetsMarginAmount) external

AddMargin gated with NID signature verification

Called by users to avoid liquidation by adding margin

Parameters

NameTypeDescription
campaignIduint256The ID of the associated fractions
packetsMarginAmountuint256The amount to add as margin

On this page