RefundEscrow
contract RefundEscrow
Escrow that holds funds for a beneficiary, deposited from multiple parties. The contract owner may close the deposit period, and allow for either withdrawal by the beneficiary, or refunds to the depositors.
Source: payment/RefundEscrow.sol
Reference
Events
Closed
event Closed()
RefundsEnabled
event RefundsEnabled()
Functions
beneficiaryWithdraw
function beneficiaryWithdraw() public
Withdraws the beneficiary's funds.
close
function close() public
Allows for the beneficiary to withdraw their funds, rejecting further deposits.
- Modifiers:
- onlyOwner
deposit
function deposit(address _refundee) public payable
Stores funds that may later be refunded.
- Parameters:
_refundee
- The address funds will be sent to if a refund occurs.
enableRefunds
function enableRefunds() public
Allows for refunds to take place, rejecting further deposits.
- Modifiers:
- onlyOwner
fallback
function (address _beneficiary) public
Constructor.
- Parameters:
_beneficiary
- The beneficiary of the deposits.
withdrawalAllowed
function withdrawalAllowed(address _payee) public view returns (bool)
Returns whether refundees can withdraw their deposits (be refunded).
- Parameters:
_payee
- address- Returns:
- bool