171 - OZ ConditionalEscrow
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.
- Escrow Funds for Payee
- Conditional Withdrawal
withdrawalAllowed()
-> Check Conditionwithdraw(payee)
public
vsonlyOwner
require(withdrawalAllowed(payee))
-> withdraw