Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixFan1992 committed Aug 2, 2024
1 parent 2dd63cc commit 913f40d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions contracts/.changeset/smooth-hounds-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts': patch
---

implement an OptimismModuleV2 for more cost efficient L1 fee calculation
2 changes: 1 addition & 1 deletion contracts/src/v0.8/automation/chains/OptimismModuleV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract OptimismModuleV2 is ChainModuleBase, ConfirmedOwner {

/// @dev L1 fee coefficient can be applied to reduce possibly inflated gas price
uint8 public s_l1FeeCoefficient = 100;
uint256 private constant FIXED_GAS_OVERHEAD = 5_000;
uint256 private constant FIXED_GAS_OVERHEAD = 28_000;
uint256 private constant PER_CALLDATA_BYTE_GAS_OVERHEAD = 0;

/// @dev This is the padding size for unsigned RLP-encoded transaction without the signature data
Expand Down

0 comments on commit 913f40d

Please sign in to comment.