Festive Fuchsia Shell
High
When a user chooses to sell their NFT through sellNFT, the function transfers the wanted token into the contract. The problem is there is no way to retrieve this NFT from the contract and the user will be unable to fulfill their buy order leaving the NFT permanently locked in the contract.
When the seller calls sellNFT
with the receipt ID they wish to sell, it is transferred into the buyOrder
contract.
IERC721(buyInformation.wantedToken).transferFrom(
msg.sender,
address(this),
receiptID
);
The problem is that currently there is no way for the creator of this buy order to receive their NFT. This is because there is no implementation within the contract that allows for the transfer to the buyer.
No response
No response
- User creates a buy order through
buyOrderFactory
- A user fulfills this order which transfers the NFT into the
buyOrder
contract - NFT is locked permanently
Critical- complete loss of the receipt and loss of funds to the buyer
No response
Implement some logic to either transfer directly to the buyer, or transfer from the contract to the buyer.