Skip to content

Latest commit

 

History

History
195 lines (166 loc) · 6.02 KB

Escrow.md

File metadata and controls

195 lines (166 loc) · 6.02 KB

Escrow (Escrow.sol)

View Source: contracts/payment/escrow/Escrow.sol

↗ Extends: Secondary ↘ Derived Contracts: ConditionalEscrow

Escrow

Base escrow contract, holds funds designated for a payee until they withdraw them.

Contract Members

Constants & Variables

mapping(address => uint256) private _deposits;

Events

event Deposited(address indexed payee, uint256  weiAmount);
event Withdrawn(address indexed payee, uint256  weiAmount);

Functions

depositsOf

function depositsOf(address payee) public
returns(uint256)

Arguments

Name Type Description
payee address

deposit

⤿ Overridden Implementation(s): RefundEscrow.deposit

Stores the sent amount as credit to be withdrawn.

function deposit(address payee) public payable onlyPrimary 

Arguments

Name Type Description
payee address The destination address of the funds.

withdraw

⤿ Overridden Implementation(s): ConditionalEscrow.withdraw

Withdraw accumulated balance for a payee.

function withdraw(address payee) public undefined onlyPrimary 

Arguments

Name Type Description
payee address The address whose funds will be withdrawn and transferred to.

Contracts