Executor
Last updated
Last updated
Inherits: IExecutor, ReentrancyGuard
Abstract contract for executing operations
A similar version of this contract was previously audited
See: https://github.com/aera-finance/aera-contracts-public/blob/main/v2/periphery/Executor.sol
Execute arbitrary actions
function execute(OperationPayable[] calldata operations) external nonReentrant;
Parameters
operations
OperationPayable[]
The operations to execute
Execute a single operation
Executes the operation and reverts if it fails
function _executeOperation(OperationPayable calldata operation) internal virtual;
Parameters
operation
OperationPayable
The operation to execute
Authorize the execution of operations
Intended to be marked by onlyOwner
or similar access control modifier
function _checkOperations(OperationPayable[] calldata operations) internal view virtual;
Parameters
operations
OperationPayable[]
The operations to check
Authorize the execution of a single operation
function _checkOperation(OperationPayable calldata operation) internal view virtual;
Parameters
operation
OperationPayable
The operation to check