The TakerOrder struct contains 5 distinct parameters:
isOrderAsk - Whether the order is an ask (executing an active order to lend a NFT against a maker bid orders) or a bid (executing an active order to borrow an NFT against a maker ask order).
taker — The msg.sender address. If the transaction sender tries to execute a taker order with a different address, it will naturally revert.
collateral - The amount to be deposited as collateral for the NFT.
fee - The amount to be paid to the lender upon borrowing the NFT.
tokenId — The id of the token for the order. For collection orders, this field is used in the execution (for taker ask orders).
Like most exchange marketplaces & protocols (including non-NFT marketplaces), an order can be of two distinct types: Ask or Bid.
In the Dyve protocol, Ask means the user is lending a NFT whereas Bid means the user is borrowing a NFT.
The amount of collateral to be posted for borrowing the NFT. This will serve as insurance for the lender in the event that the NFT is not returned before the expiryDateTime.
The amount to be paid by the borrower to the Lender for borrowing the NFT.
This is the sender address (msg.sender). If the transaction sender tries to execute a taker order with a different address, it reverts.
The tokenId that the taker is looking to borrow/lend.