Fraction ProtocolinternalFacetspurchasePhaseFacetspostPurchaseFacetsstakeFractions

PostPurchaseStakeFacetStorage

PostPurchaseStakeFacetStorage

InvalidZeroAddressForStaking

error InvalidZeroAddressForStaking(uint256 campaignId)

Thrown when attempting to assign the zero address as the staking contract.

InvalidZeroStakingCampaignId

error InvalidZeroStakingCampaignId(uint256 campaignId)

Thrown when attempting to assign a zero value to the targeted staking campaign Id.

InvalidZeroAmountOfFractionsPerInputPacket

error InvalidZeroAmountOfFractionsPerInputPacket(uint256 campaignId)

Thrown when attempting to assign a zero value to amountOfFractionsPerInputPacket.

InvalidNonZeroLeftOverBetweenFractionsAndPackets

error InvalidNonZeroLeftOverBetweenFractionsAndPackets(uint256 campaignId, uint256 amountOfFractions, uint256 fractionsPerPacket)

Thrown when attempting to stake amount of fractions that are not perfectly divided with amountOfFractionsPerPacket.

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

Layout

struct Layout {
  mapping(uint256 => struct PostPurchaseStakeFacetStorage.CampaignInfo) campaignInfo;
}

CampaignInfo

struct CampaignInfo {
  address stakingContract;
  uint256 stakingCampaignId;
  uint256 amountOfFractionsPerInputPacket;
}

layout

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

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

setPostPurchaseStakeFacet

function setPostPurchaseStakeFacet(struct PostPurchaseStakeFacetStorage.Layout l, uint256 campaignId, bytes setPostPurchaseStakeData) internal returns (address, uint256, uint256)

handlePostPurchasePhase

function handlePostPurchasePhase(struct PostPurchaseStakeFacetStorage.Layout l, uint256 campaignId, uint256 amountOfFractions, address msgSender, bytes data) internal

On this page