Skip to content

Commit

Permalink
Update ERC-4337: Unused gas penalty only callGasLimit and paymaster…
Browse files Browse the repository at this point in the history
…PostOpGasLimit`

Merged by EIP-Bot.
  • Loading branch information
forshtat authored Sep 8, 2024
1 parent 8082e27 commit 1ff6e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ERCS/erc-4337.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ In the execution loop, the `handleOps` call must perform the following steps for
* **Call the account with the `UserOperation`'s calldata**. It's up to the account to choose how to parse the calldata; an expected workflow is for the account to have an `execute` function that parses the remaining calldata as a series of one or more calls that the account should make.
* If the calldata starts with the methodsig `IAccountExecute.executeUserOp`, then the EntryPoint must build a calldata by encoding `executeUserOp(userOp,userOpHash)` and call the account using that calldata.
* After the call, refund the account's deposit with the excess gas cost that was pre-charged.\
A penalty of `10%` (`UNUSED_GAS_PENALTY_PERCENT`) is applied on the amount of gas that is refunded.\
A penalty of `10%` (`UNUSED_GAS_PENALTY_PERCENT`) is applied on the amounts of `callGasLimit` and `paymasterPostOpGasLimit` gas that remains **unused**.\
This penalty is necessary to prevent the UserOps from reserving large parts of the gas space in the bundle but leaving it unused and preventing the bundler from including other UserOperations.
* After the execution of all calls, pay the collected fees from all UserOperations to the bundler's provided address

Expand Down

0 comments on commit 1ff6e56

Please sign in to comment.