block-quote On this pagechevron-down
copy Copy chevron-down
π Adapters and StrategiesReservoirAdapter ReservoirAdapter.sol is an adapter contract that enables the Unlockd Protocol to interact with the Reservoir marketplace. It implements the IMarketAdapter interface and provides functions for selling, buying, and canceling orders on the Reservoir marketplace.
Copy function preSell (
PreSellParams memory params
) public payable onlyProtocol Prepares an asset for selling on the Reservoir marketplace.
params: The parameters for preparing the sell operation.
Copy function sell (
SellParams memory params
) public payable onlyProtocol Sells an asset on the Reservoir marketplace.
params: The parameters for the sell operation.
Copy function preBuy (
PreBuyParams memory params
) public payable onlyProtocol Prepares for buying an asset on the Reservoir marketplace.
params: The parameters for preparing the buy operation.
Buys an asset on the Reservoir marketplace.
params: The parameters for the buy operation.
Returns: The actual cost of the buy operation.