Conditional Escrow
Last updated
Last updated
ConditionalEscrow
Base abstract escrow to only allow withdrawal if a condition is met.Intended usage: See {Escrow}. Same usage guidelines apply here.
Stores the sent amount as credit to be withdrawn.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Returns the address of the current owner.
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.
Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
payee
address
The destination address of the funds.
payee
address
undefined
_0
uint256
undefined
_0
address
undefined
newOwner
address
undefined
payee
address payable
The address whose funds will be withdrawn and transferred to.
payee
address
The destination address of the funds.
_0
bool
undefined
payee indexed
address
undefined
weiAmount
uint256
undefined
previousOwner indexed
address
undefined
newOwner indexed
address
undefined
payee indexed
address
undefined
weiAmount
uint256
undefined