Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 876 Bytes

OZ Escrow.md

File metadata and controls

23 lines (19 loc) · 876 Bytes

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.

  1. depositsOf(address payee)uint256

  2. deposit(address payee): Stores the sent amount as credit to be withdrawn.

  3. withdraw(address payable payee): Withdraw accumulated balance for a payee, forwarding all gas to the recipient.


Slide Screenshot

170.jpg


Slide Text

  • Escrow Funds for Payee Ownable
  • depositsOf(payee) -> uint256
  • deposit(payee) -> onlyOwner
  • withdraw(payee) -> onlyOwner

References


Tags