Description
Write Escrow contract to facilitate transactions
Contract is created by seller
Buyer deposits, and specifies time
Seller then accepts or declines, if accepted, the specified time is now in effect
Once buyer confirms the receipt of food, money is released to seller
If buyer doesn't pick up food, money is released to seller after 3 days
seller deposits security deposit when creating contract
must have a minimum of 0.5 eth in the security deposit
the full amount of the security deposit may not be withdrawn unless the contract is deleted
required:
buyer paying for food when ordering
seller is paid once food is accepted by buyer
buyer is refunded when offer is declined
buyer may apply for refund if offer is not accepted within 5 minutes
buyer is refunded if contract is closed
functions:
constructor
deposit - buyer pays for food
payOut - send funds to seller
refund - send funds to buyer
Instantiate Contract on the Test Network
Test Smart Contract
Integrate web app with web3 API
Reactions are currently unavailable
You can’t perform that action at this time.
required:
functions:
Instantiate Contract on the Test Network
Test Smart Contract
Integrate web app with web3 API