Escrow contract appears to be incomplete, lacking some functionality.
Additional function added to allow buyer to withdraw tokens when seller declines service.
When escrow is working as intended, buyer is not able retrieve tokens if seller decides to decline service.
Buyer can potential lose all tokens. Only way around is to call initiateDispute()
and have arbiter call resolveDispute()
to get partial of price back.
foundry
Following lines of code were added:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.