StrategyStandardSaleForFixedPrice
Strategy that executes an order at a fixed price that can be taken either by a bid or an ask.
function PROTOCOL_FEE() external view returns (uint256)
Name | Type | Description |
---|---|---|
PROTOCOL_FEE | uint256 | protocol fee (e.g., 200 = 2%) |
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
Name | Type | Description |
---|---|---|
takerAsk | OrderTypes.TakerOrder | taker ask order |
makerBid | OrderTypes.MakerOrder | maker bid order |
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 |
function canExecuteTakerBid(OrderTypes.TakerOrder takerBid, OrderTypes.MakerOrder makerAsk) external view returns (bool, uint256, uint256)
Check whether a taker bid order can be executed against a maker ask
Name | Type | Description |
---|---|---|
takerBid | OrderTypes.TakerOrder | taker bid order |
makerAsk | OrderTypes.MakerOrder | maker ask order |
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 |
function viewProtocolFee() external view returns (uint256)
Return protocol fee for this strategy
Name | Type | Description |
---|---|---|
protocolFee | uint256 | protocol fee |
Last modified 10mo ago