Comment on page
Protocol Overview
The main contracts in Exchange Protocol and their purposes are:
The core contract of the Bend exchange, and main entry point into the Exchange Protocol. Most interactions will happen via the BendExchange, including:
function matchAskWithTakerBid(OrderTypes.TakerOrder takerBid, OrderTypes.MakerOrder makerAsk) external
function matchBidWithTakerAsk(OrderTypes.TakerOrder takerAsk, OrderTypes.MakerOrder makerBid) external nonpayable
function matchAskWithTakerBidUsingETHAndWETH(OrderTypes.TakerOrder takerBid, OrderTypes.MakerOrder makerAsk) external payable
Trades exist such as a combination of taker/order and bid/ask. here are four primary orders:
- MakerBid — a passive order that exists off-chain where the user wishes to acquire a NFT using a specific ERC-20 token.
- MakerAsk — a passive order that exists off-chain where the user wishes to sell a NFT for a specific ERC-20 token.
- TakerBid — an order that is executed on-chain that matches the
MakerAsk
, e.g., the taker accepts the offer from the maker and buys the NFT for the ERC-20 token specified. - TakerAsk — an order that is executed on-chain that matches the
MakerBid
, e.g., the taker accepts the offer from the maker and sells the NFT for the ERC-20 token specified.
Last modified 1yr ago