The primary account (that is, the contract that instantiates this contract) may deposit, close the deposit period, and allow for either withdrawal by the beneficiary, or refunds to the depositors. All interactions with RefundEscrow will be made through the primary contract. See the RefundableCrowdsale contract for an example of RefundEscrow’s use.
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).