Fraction ProtocolinternalFacetsbuybackPhaseFacetsbuybackStateFacetssingleState

SingleStateBuybackFacetStorage

SingleStateBuybackFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidStateZero

error InvalidStateZero()

Thrown when attempting to set a state as 0.

NonBuybackState

error NonBuybackState()

Thrown when attempting to buyback while not in buyback 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: 0xbc72776da9142540d989189e68817a6ae50e438f45df310f618ae53e47043700

Layout

struct Layout {
  uint256 buybackState;
}

layout

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

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

initBuybackStateFacet

function initBuybackStateFacet(struct SingleStateBuybackFacetStorage.Layout l, bytes initBuybackStateData) internal returns (uint256)

checkBuybackState

function checkBuybackState(struct SingleStateBuybackFacetStorage.Layout l, uint256 campaignId) internal view

On this page