Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 695 Bytes

OZ ConditionalEscrow.md

File metadata and controls

19 lines (18 loc) · 695 Bytes

OpenZeppelin ConditionalEscrow: Derived from Escrow and only allows withdrawal if a condition is met by providing the withdrawalAllowed() function which returns whether an address is allowed to withdraw their funds and is to be implemented by derived contracts.


Slide Screenshot

171.jpg


Slide Text

  • Escrow Funds for Payee
  • Conditional Withdrawal
  • withdrawalAllowed() -> Check Condition
  • withdraw(payee)
    • public vs onlyOwner
  • require(withdrawalAllowed(payee)) -> withdraw

References


Tags