170 - OZ Escrow
OpenZeppelin Escrow: holds funds designated for a payee until they withdraw them. The contract that uses this escrow as its payment method should be its owner, and provide public methods redirecting to the escrow's deposit and withdraw if the escrow rules are satisfied.
-
depositsOf(address payee)
→uint256
: -
deposit(address payee)
: Stores the sent amount as credit to be withdrawn. -
withdraw(address payable payee)
: Withdraw accumulated balance for a payee, forwarding all gas to the recipient.
- Escrow Funds for Payee Ownable
depositsOf(payee)
-> uint256deposit(payee)
-> onlyOwnerwithdraw(payee)
-> onlyOwner