The total fee depends on what the transaction does (l2TransactionGasUsed) as well as the current market conditions (l2TransactionGasPrice). Users set the gas price, and the "gas used" is determined by the estimateGas endpoint on our Nodes.
In other words, the execution fee is calculated precisely like pre-EIP1559 Ethereum.
Where are the tx fees sent to?
Currently, all L2 tx fees are collected into our L2 FeeVault predeploy at address 0x5300000000000000000000000000000000000005. This contract also tracks the amount we’ve historically withdrawn to L1.