Fraction ProtocolgenericFacetspriceFacetsbondingCurvePriceFacetslinearCurveFacet

LinearCurvePriceFacetStorage

InvalidPriceZero

error InvalidPriceZero()

Thrown when attempting to set price as zero.

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: TO-DO

Layout

struct Layout {
  mapping(uint256 => struct LinearCurve.Curve) curve;
}

layout

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

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

setAndCheckPriceFacet

function setAndCheckPriceFacet(struct LinearCurvePriceFacetStorage.Layout l, bytes postFractionPriceData) internal returns (uint256, uint256)

getPurchasePrice

function getPurchasePrice(struct LinearCurvePriceFacetStorage.Layout l, uint256 campaignId, uint256 amountOfFractions) internal view returns (uint256)

getCurrentPrice

function getCurrentPrice(struct LinearCurvePriceFacetStorage.Layout l, uint256 campaignId) internal view returns (uint256)

On this page