Accept deal
Accepting a deal indicates that you have either received or delivered the product. Once both parties have accepted the deal, the funds are transferred to the seller’s bankroll. At this point, the deal is finalized — funds cannot be retrieved and the deal can no longer be disputed.
UI Step: Both the buyer and the seller can accept the deal by clicking "Accept".
Technical Behavior:
Function:
acceptDeal(uint256 dealId)Only the buyer or seller of the deal can call this function.
Both must accept within
30 daysof deal creation.Once both accept, the deal is resolved automatically:
Funds are transferred to the seller.
Deal is marked as
resolved.The
DealAcceptedevent is emitted.
Validation:
If the deal has expired (
timestamp + 30 days), it cannot be accepted.
The Deal ID is displayed in the UI when you create a deal. If you lose it or need to retrieve it later, you can find it using a blockchain explorer by locating the DealCreated event in the transaction logs of the createDeal transaction (see the image below). Both buyer and seller need it to confirm the deal.


Last updated