Bit-Nation / pat-escrow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pat-escrow

standard-readme compliant

PAT Escrow contract

Table of Contents

Install

Usage

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.

API

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

Maintainers

@florianlenz

Contribute

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2018 Bitnation

About

License:MIT License


Languages

Language:JavaScript 100.0%