PullPayment
contract PullPayment
Base contract supporting async send for pull payments. Inherit from this contract and use asyncTransfer instead of send or transfer.
Source: payment/PullPayment.sol
Reference
Functions
asyncTransfer
function asyncTransfer(address _dest, uint256 _amount) internal
Called by the payer to store the sent amount as credit to be pulled.
- Parameters:
_dest
- The destination address of the funds._amount
- The amount to transfer.
fallback
function () public
payments
function payments(address _dest) public view returns (uint256)
Returns the credit owed to an address.
- Parameters:
_dest
- The creditor's address.- Returns:
- uint256
withdrawPayments
function withdrawPayments() public
Withdraw accumulated balance, called by payee.