PAT Escrow contract
Look at the API how to use this contract.
You can check if this contract is ready for a withdrawal
by checking if the token
balance is greater or equal uponAgreedTokens
. withdrawled
must be false as well.
You can check if the value has been drained by checking if the balance of the contract is not equal uponAgreedEther
and withdrawled
is false.
drain
Drain will send back the tokens back to tradePartner
and ether back to the creator
withdrawal
Withdrawal will send the ether to the tradePartner
and the tokens to the creator
.
uponAgreedEther The amount of ether that is needed for this escrow.
uponAgreedTokens The amount of tokens agreed on for this escrow.
creator The creator of this contract.
tradePartner The tradePartner is the partner you are trading with.
withdrawled is true after a successful withdrawl
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2018 Bitnation