Skip to main content

BaseStrategy

isLooksRareV2Strategy

function isLooksRareV2Strategy() external pure returns (bool)

This function acts as a safety check for the protocol's owner when adding new execution strategies.

Return Values

NameTypeDescription
[0]bool

_validateAmountNoRevert

function _validateAmountNoRevert(uint256 amount, enum CollectionType collectionType) internal pure

This is equivalent to if (amount == 0 || (amount != 1 && collectionType == 0)) { return (0, OrderInvalid.selector); } OrderInvalid_error_selector is a left-padded 4 bytes. If the error selector is returned instead of reverting, the error selector needs to be right-padded by 28 bytes. Therefore it needs to be left shifted by 28 x 8 = 224 bits.