Skip to main content

StrategyStandardSaleForFixedPrice

Strategy that executes an order at a fixed price that can be taken either by a bid or an ask.

Methods

PROTOCOL_FEE

function PROTOCOL_FEE() external view returns (uint256)

Returns

NameTypeDescription
PROTOCOL_FEEuint256protocol 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

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 takerBid, OrderTypes.MakerOrder makerAsk) external view returns (bool, uint256, uint256)

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

Parameters

NameTypeDescription
takerBidOrderTypes.TakerOrdertaker bid order
makerAskOrderTypes.MakerOrdermaker ask 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

viewProtocolFee

function viewProtocolFee() external view returns (uint256)

Return protocol fee for this strategy

Returns

NameTypeDescription
protocolFeeuint256protocol fee