A Secret Weapon For scroll bridge
A Secret Weapon For scroll bridge
Blog Article
Throughout the codebase, you can find spots at which the code fashion adopted is not regular across each of the contracts:
Within the pretty initial token bridging, a completely new token is going to be developed on L2 that implements the ScrollStandardERC20. To bridge a token, contact the depositERC20 purpose around the L1GatewayRouter.
This can be similar to how it made use of to happen when routing the decision in the L1ETHGateway contract. As this does not depend upon the information additional towards the depositETH phone, Individuals resources can get trapped in case they don't seem to be bridged effectively.
This audit reviewed the adjustments manufactured to various Scroll contracts as A part of pull ask for #1011. These changes had The only objective of cutting down the gas cost of the operation. One of the most notable variations include:
In prior article content on XY Web site, We have now highlighted noteworthy protocols on Scroll and available comprehensive insights into Scroll’s functions, benefits, and long run development procedures.
Gas limit demanded to complete the deposit on L2. 170000 needs to be more than enough to course of action the transaction, but unused money are refunded.
Enter the scroll bridge amount you need to swap. Rubic will automatically find the greatest rate on your transaction.
This performance expands the probabilities for decentralized programs and good contracts to work seamlessly throughout both equally networks.
The L1WETHGateway contract misses the exact same assertion current in the L2WETHGateway contract about parameters not being used.
The gasOracle general public variable from the L1MessageQueue agreement just isn't outlined inside the corresponding interface. A similar comes about for each of the immutable and general public variables aside from pendingQueueIndex that has a selected getter described from the interface.
Having said that, now, there's no these types of distinction and its name implies that The complete concept does not have a zero byte.
Together with token transfers, the Scroll Messenger agreement permits cross-chain agreement conversation. This means that contracts on 1 network can interact with contracts on one other community from the Scroll Messenger agreement.
The L2GasPriceOracle.intrinsicParams getter from the implementation is just not mirrored while in the interface.
This conversion is particularly useful in circumstances in which knowing the electrical load is important for set up or for assessing ability intake.