Skip to content

[Miscellaneous] Optimism / OP Stack based blockchain might have been not applying L1 Fee Scalar properly in transcation fee calculations #46

Closed Answered by ajsutton
jonathanykh asked this question in Miscellaneous
Discussion options

You must be logged in to vote

I believe Etherscan is applying the L1 fee scalar to the L1 gas used. Note that the "L1 Gas Used by Txn" is not an integer but there's no such thing as decimal gas. If you request the transaction receipt from an actual node it gives:

cast receipt -j --rpc-url $OP_MAINNET 0x84e128b7c54d22f5b283538553cc0a9d9c8056c35a1010d64558dd0d86fc1fc3 | jq
{
  "transactionHash": "0x84e128b7c54d22f5b283538553cc0a9d9c8056c35a1010d64558dd0d86fc1fc3",
  "transactionIndex": "0x4",
  "blockHash": "0xe3b91307f84a3ac0fd92f86cb92468328b0597e1f5211ff7bfedefdc49b66049",
  "blockNumber": "0x6a891ff",
  "from": "0x2e086aa3c4fa88cd17a80842199c59f6597551d0",
  "to": "0xe60ea7b0725e252ce2ad9f8e79eb3e686f5d1148",
  "cum…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@Chomtana
Comment options

@ajsutton
Comment options

ajsutton Nov 6, 2023
Collaborator

@Chomtana
Comment options

@Chomtana
Comment options

@ajsutton
Comment options

ajsutton Nov 6, 2023
Collaborator

Answer selected by jonathanykh
Comment options

You must be logged in to vote
1 reply
@jonathanykh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
miscellaneous Uncategorized developer questions, we'll figure it out together. discussion-metrics Used by Github Action to gather discussion metrics on the question and answer section.
5 participants