ozAccountProxy
This is the Account that gets created when calling createNewProxy() on ProxyFactory, where the users will receive their ETH transfers. It's also the contract that Gelato continuously check for initiating the 2nd transaction within the L1 flow.
It inherits Open Zeppelin's BeaconProxy contract.
Open methods
checker
function checker() external view returns(bool canExec, bytes memory execPayload);Gelato checker which queries the Account for ETH balance > 0. It's a constant function signature given by Gelato.
Return values:
canExec
boolean
true if the condition is met which would start the Gelato execution
execPayload
bytes
Calldata with which the Account will be called (just a reference in this case)
System methods
_delegate
function _delegate(address implementation) internal;Once it detects a call, it queries the msg.data to check if it's one of the authorized functions which calldata can be forwarded untampered to the implementation (ozPayMe).
If it's not authorized, it sends the same calldata each time, which is the configuration of the Account and the L2 hard-coded gasPrice .
Parameters:
implementation
address
The implementation
Last updated