Skip to main content

StrategyAnyItemFromCollectionForFixedPrice

Strategy to send an order at a fixed price that can be matched by any tokenId for the collection.

Methods​

canExecuteTakerAsk​

function canExecuteTakerAsk(OrderTypes.TakerOrder takerAsk, OrderTypes.MakerOrder makerBid) external view returns (bool, uint256, uint256)

Check whether a taker ask order can be executed against a maker bid

Parameters​

NameTypeDescription
takerAskOrderTypes.TakerOrdertaker ask order
makerBidOrderTypes.MakerOrdermaker bid order

Returns​

NameTypeDescription
isValidboolwhether strategy can be executed, tokenId to execute, amount of tokens to execute
priceuint256price of the transaction
amountuint256amount of tokens to transfer

canExecuteTakerBid​

function canExecuteTakerBid(OrderTypes.TakerOrder, OrderTypes.MakerOrder) external pure returns (bool, uint256, uint256)

Check whether a taker bid order can be executed against a maker ask

It cannot execute but it is left for compatibility purposes with the interface.

Parameters​

NameTypeDescription
-OrderTypes.TakerOrder-
-OrderTypes.MakerOrder-

Returns​

NameTypeDescription
isValidboolwhether strategy can be executed, tokenId to execute, amount of tokens to execute
priceuint256price of the transaction
amountuint256amount of tokens to transfer

setProtocolFee​

function setProtocolFee(uint256 newProtocolFee) external nonpayable

Set a new protocol fee. Can only be called by the current owner.

viewProtocolFee​

function viewProtocolFee() external view returns (uint256)

Return protocol fee for this strategy

Returns​

NameTypeDescription
protocolFeeuint256protocol fee

Events​

NewProtocolFee​

event NewProtocolFee(uint256 protocolFee)

Parameters​

NameTypeDescription
protocolFeeuint256new protocol fee