Escrow that holds funds for a beneficiary, deposited from multiple parties. The primary account may close the deposit period, and allow for either withdrawal by the beneficiary, or refunds to the depositors.
function beneficiary() public view returns (address)
- the beneficiary of the escrow.
function beneficiaryWithdraw() public
Withdraws the beneficiary's funds.
function close() public
Allows for the beneficiary to withdraw their funds, rejecting further deposits.
function deposit(address refundee) public payable
Stores funds that may later be refunded.
refundee- The address funds will be sent to if a refund occurs.
function enableRefunds() public
Allows for refunds to take place, rejecting further deposits.
function (address beneficiary) public
beneficiary- The beneficiary of the deposits.
function state() public view returns (State)
- the current state of the escrow.
function withdrawalAllowed(address payee) public view returns (bool)
Returns whether refundees can withdraw their deposits (be refunded).