Skip to content

ListingStrategies

ListingStrategies

FIXED_RATE

bytes4 FIXED_RATE

FIXED_RATE_WITH_REWARD

bytes4 FIXED_RATE_WITH_REWARD

ListingStrategyMismatch

error ListingStrategyMismatch(bytes4 provided, bytes4 required)

Thrown when the listing strategy ID does not match the required one.

Name Type Description
provided bytes4 Provided listing strategy ID.
required bytes4 Required listing strategy ID.

compatibleStrategy

modifier compatibleStrategy(bytes4 checkedStrategyId, bytes4 expectedStrategyId)

Modifier to check strategy compatibility.

getSupportedListingStrategyIDs

function getSupportedListingStrategyIDs() internal pure returns (bytes4[] supportedListingStrategyIDs)

isValidListingStrategy

function isValidListingStrategy(bytes4 listingStrategyId) internal pure returns (bool)

decodeFixedRateListingStrategyParams

function decodeFixedRateListingStrategyParams(struct IListingTermsRegistry.ListingTerms terms) internal pure returns (uint256 baseRate)

decodeFixedRateWithRewardListingStrategyParams

function decodeFixedRateWithRewardListingStrategyParams(struct IListingTermsRegistry.ListingTerms terms) internal pure returns (uint256 baseRate, uint16 rewardPercentage)