Fraction ProtocolsubInternalFacetstwoClickLiquidationPhaseFacetsliquidationEligibilityFacetsroleEligibility

LiquidationRoleEligibilityFacetStorage

LiquidationRoleEligibilityFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

UnauthorizedLiquidator

error UnauthorizedLiquidator(address account)

Thrown when attempting liquidate without authorization.

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

Layout

struct Layout {
  bool isInitialized;
  bool checkEligibilityPerId;
  bytes32 eligibleRole;
}

layout

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

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

initLiquidationEligibilityFacet

function initLiquidationEligibilityFacet(struct LiquidationRoleEligibilityFacetStorage.Layout l, bytes initLiquidationEligibilityData) internal returns (bytes32, bool)

checkLiquidationEligibility

function checkLiquidationEligibility(struct LiquidationRoleEligibilityFacetStorage.Layout l, uint256 campaignId, address account) internal view

On this page