Fraction ProtocolsubInternalFacetsmarginCallPhaseFacetsmarginCallStateFacetssingleState

SingleStateMarginCallFacetStorage

SingleStateBuybackFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidMarginCallStateZero

error InvalidMarginCallStateZero()

Thrown when attempting to set margin call state as 0.

NonMarginCallState

error NonMarginCallState(uint256 marginCallState, uint256 currentState)

Thrown when attempting to add margin while not in margin call state.

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: 0xb87ec4c9e5d5ab971283d2c4e5fec767b7954966a8cd5d006b00b2cc32390500

Layout

struct Layout {
  uint256 marginCallState;
}

layout

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

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

initMarginCallStateFacet

function initMarginCallStateFacet(struct SingleStateMarginCallFacetStorage.Layout l, bytes initMarginCallStateData) internal returns (uint256)

checkMarginCallState

function checkMarginCallState(struct SingleStateMarginCallFacetStorage.Layout l, uint256 campaignId) internal view

On this page