Fraction ProtocolskeletonFacetsconnectorsbuybackToFoldConnectors

FailedBuybackToFoldFacetStorage

FailedBuybackToFoldFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidZeroStates

error InvalidZeroStates()

Thrown when attempting to pass invalid zero states.

NonBuybackState

error NonBuybackState(uint256 buybackState, uint256 currentState)

Thrown when not in buyback state.

InvalidFailedBuyback

error InvalidFailedBuyback()

Thrown when attempting to make buyback fail without it failing yet.

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

Layout

struct Layout {
  uint256 buybackState;
  uint256 destinationState;
}

layout

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

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

initBuybackToFoldFacet

function initBuybackToFoldFacet(struct FailedBuybackToFoldFacetStorage.Layout l, bytes initBuybackToFoldData) internal

triggerFailedBuyback

function triggerFailedBuyback(struct FailedBuybackToFoldFacetStorage.Layout l, uint256 campaignId) internal

On this page