-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devsvcs-168: fix chain module l1 fee calculation #14150
Conversation
I see you updated files related to |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed comments with the author, current changes LGTM.
Leaving possible gas-saving improvements for later as it might blow up the size of this PR.
return SCROLL_ORACLE.getL1Fee(bytes.concat(msg.data, SCROLL_L1_FEE_DATA_PADDING)); | ||
constructor() ConfirmedOwner(msg.sender) {} | ||
|
||
function getCurrentL1Fee(uint256 dataSize) external view override returns (uint256) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have we tested this function on scroll to see if it is charging reasonably?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. i did some testing with a custom upkeep and this module.
i think we can start with 100 as the coefficient and reduce it to a comfortable number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me, just want to confirm if we've done some sanity checks on scroll with the new module
@@ -3,8 +3,12 @@ pragma solidity 0.8.19; | |||
|
|||
import {IScrollL1GasPriceOracle} from "../../vendor/@scroll-tech/contracts/src/L2/predeploys/IScrollL1GasPriceOracle.sol"; | |||
import {ChainModuleBase} from "./ChainModuleBase.sol"; | |||
import {ConfirmedOwner} from "../../shared/access/ConfirmedOwner.sol"; | |||
|
|||
contract ScrollModule is ChainModuleBase, ConfirmedOwner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now have an owner of this chain module, we'll need to add appropriate steps in deployment and setup guide cc @anirudhwarrier
Requires Dependencies
Resolves Dependencies