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: EIPS/eip-7623.md
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,42 +25,45 @@ By introducing a floor cost dependent on the ratio of gas spent on EVM operation
25
25
26
26
## Specification
27
27
28
-
| Parameter | Value |
29
-
| - | - |
30
-
|`STANDARD_TOKEN_COST`|`4`|
31
-
|`TOTAL_COST_FLOOR_PER_TOKEN`|`10`|
28
+
| Parameter | Value |
29
+
|------------------------------|-------|
30
+
|`STANDARD_TOKEN_COST`|`4`|
31
+
|`TOTAL_COST_FLOOR_PER_TOKEN`|`10`|
32
32
33
33
34
34
Let `tokens_in_calldata = zero_bytes_in_calldata + nonzero_bytes_in_calldata * 4`.
35
35
36
36
Let `isContractCreation` be a boolean indicating the respective event.
37
37
38
-
The current formula for determining the gas used per transaction, typically described as `nonzero_bytes_in_calldata * 16 + zero_bytes_in_calldata * 4`, is equivalent to:
38
+
Let `execution_gas_used` be the gas used for EVM execution with the gas refund subtracted.
39
+
40
+
The current formula for determining the total gas used per transaction (`tx.gasUsed`) is equivalent to:
Any transaction with a gas limit below `21000+TOTAL_COST_FLOOR_PER_TOKEN* tokens_in_calldata`or below it's intrinsic gas cost (take the maximum of these two calculations) is considered invalid. This limitation exists because transactions must cover the floor price of their calldata without relying on the execution of the transaction. There are valid cases where `gasUsed` will be below this floor price, but the floor price needs to be reserved in the transaction gas limit.
66
+
Any transaction with a gas limit below `21000 + TOTAL_COST_FLOOR_PER_TOKEN * tokens_in_calldata` or below its intrinsic gas cost (take the maximum of these two calculations) is considered invalid. This limitation exists because transactions must cover the floor price of their calldata without relying on the execution of the transaction. There are valid cases where `gasUsed` will be below this floor price, but the floor price needs to be reserved in the transaction gas limit.
0 commit comments