Fraction ProtocolinternalFacetscreateFractionsPhaseFacetscreateFractionsEligibilityFacets

CreateFractionsEligibilityMixerStorage

CreateFractionsEligibilityMixerStorage

In this mixer maybe some steps are not successful. For example, if creator should have an id, there are a lot of id services that he can pass through. If any of them is successful, maybe he is accepted. TO-DO: There is use case where creator should pass a facet check and also pass one of the others. TO-DO: In this case maybe we need to handle the for sure successful checks and not-forsure ones in a different way.

WrongInitializationData

error WrongInitializationData()

Thrown when initialization data are wrong.

NonEligibleCreator

error NonEligibleCreator(address account)

Thrown when account attempting to create is not eligible.

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

InfoOnCheck

struct InfoOnCheck {
  bool allSuccessfulRequired;
  bytes4[] selectorsOnCheck;
}

FunctionSelectors

struct FunctionSelectors {
  bytes4 initSelector;
  bytes4 handleSelector;
}

Layout

struct Layout {
  struct CreateFractionsEligibilityMixerStorage.InfoOnCheck infoOnCheck;
}

layout

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

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

initFractionCreationEligibility

function initFractionCreationEligibility(struct CreateFractionsEligibilityMixerStorage.Layout l, bytes initFractionCreationEligibilityData) internal returns (bytes4[], bool)

checkFractionCreationEligibility

function checkFractionCreationEligibility(struct CreateFractionsEligibilityMixerStorage.Layout l, address account) internal

On this page