मुख्य विषय में जाएं



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



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.