You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/contracts/core/GasTankManager.sol
+32-54Lines changed: 32 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -8,44 +8,43 @@ import {GasTankManagerStorage} from "./GasTankManagerStorage.sol";
8
8
import {Errors} from"../utils/Errors.sol";
9
9
10
10
/// @title GasTankManager
11
-
/// @notice Coordinates on-demand ETH bridging so EOA gas tank balances stay funded for mev-commit transactions.
12
-
/// @dev The RPC provider manages EOA gas tank balances on the Mev Commit chain.
11
+
/// @notice Coordinates on-demand ETH Transfers to the RPC Service for EOA custodial gas tanks.
13
12
/// @dev Flow overview:
14
-
/// - EOA (L1)
15
-
/// - Authorizes and sets this contract as a delegate against its own EOA address. (ERC-7702)
16
-
/// - Calls `sendMinimumDeposit` to send the initial ETH funds to their gas tank on the Mev Commit chain.
17
-
/// - Provider (mev-commit)
18
-
/// - Triggers a top-up via `topUpGasTank` when the gas tank balance cannot cover the next mev-commit transaction. This transfer amount is always the difference
19
-
/// between the `minDeposit` and the current balance of this contract. The provider is the only one who can trigger a top-up.
20
-
/// - These funds are then transferred to the EOA gas tank on the Mev Commit chain.
21
-
/// - When a mev-commit transaction is made, the provider deducts the amount needed from the EOA's gas tank.
13
+
/// - EOA (Prerequisites for use)
14
+
/// - Authorizes and sets this contract as a delegate against its own EOA address. (ERC-7702 compliant)
15
+
/// - Sends the initial minimum deposit via `initializeGasTank` to the RPC Service.
16
+
/// - RPC Service
17
+
/// - Triggers `topUpGasTank`, transferring the `minDeposit` when the gas tank requires funding.
18
+
/// - These funds are then transferred to the RPC Service's custodial gas tank.
0 commit comments