StrategyAnyItemInASetForAFixedPrice
Strategy to send an order at a fixed price that can be matched by any tokenId
in a set of tokenIds
.
Methods
PROTOCOL_FEE
function PROTOCOL_FEE() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
PROTOCOL_FEE | uint256 | protocol fee (e.g., 200 = 2%) |
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
Name | Type | Description |
---|---|---|
takerAsk | OrderTypes.TakerOrder | taker ask order |
makerBid | OrderTypes.MakerOrder | maker bid order |
Returns
Name | Type | Description |
---|---|---|
isValid | bool | whether strategy can be executed, tokenId to execute, amount of tokens to execute |
price | uint256 | price of the transaction |
amount | uint256 | amount 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
Name | Type | Description |
---|---|---|
- | OrderTypes.TakerOrder | - |
- | OrderTypes.MakerOrder | - |
Returns
Name | Type | Description |
---|---|---|
isValid | bool | whether strategy can be executed, tokenId to execute, amount of tokens to execute |
price | uint256 | price of the transaction |
amount | uint256 | amount of tokens to transfer |
viewProtocolFee
function viewProtocolFee() external view returns (uint256)
Return protocol fee for this strategy
Returns
Name | Type | Description |
---|---|---|
protocolFee | uint256 | protocol fee (e.g., 200 = 2%) |