Uh oh!
There was an error while loading. Please reload this page.
Feb2024 Bridge Updates #1 - #163
Conversation
✅ Deploy Preview for scroll-documentation ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
dghelm
commented
Feb 6, 2024
Need to adjust for modification where Router will use ETHGateway. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| --- | ||
| import ClickToZoom from "../../../../../components/ClickToZoom.astro" | ||
| import Aside from "../../../../../components/Aside.astro" |
| - We will now use constants to store some companion contract addresses, instead of using storage variables. This is possible since these values should (almost) never change. With this change we can save on a few storage load operations. | ||
| - We updated the intrinsic gas estimation in `L1MessageQueue` to use a simple upper bound instead of an exact calculation. The two results will be similar for most bridge transactions but the new implementation is significantly cheaper. | ||
| - We merged two contracts `L1MessageQueue` and `L2GasPriceOracle` to save on call costs from one contract to the other. | ||
There was a problem hiding this comment.
should we also mention that the Gateway Router contract will directly call the Scroll Messenger contract instead of ETH Gateway for ETH deposits?
There was a problem hiding this comment.
(This change was reverted after OZ audits)
| When messaging from L1 to L2, the user pays all transaction fees on L1. The user pays L1 gas fees, but because of this, doesn't need to pay Scroll an L1 Data Fee. They will need to account for L2 Execution Fees in their L1 transaction though, and will need to know how much L2 gas to pay. | ||
| Contracts on L1 can use an L2 Gas Price Oracle deployed to the L1 to get the gas fee for a given transaction. The oracle also exposes the current l2BaseFee and estimated cross-domain message fee for a given gas limit. |
There was a problem hiding this comment.
could be helpful to add that you can estimate the gas limit with eth_estimateGas
Initial updates notifying of Sepolia bridge update and the upcoming mainnet update.
Should not be pushed to prod until the article is published and links are updated.
Additional Follow-ups:
zhfor prod