lidofinance / lido-l2 Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
As part of the recent Lido V2 upgrade, we've successfully incorporated both ERC-2612 and ERC-1271 standards for stETH
. These changes were made in anticipation of the impending Account Abstraction on Ethereum, ensuring our platform remains at the forefront of industry developments.
In light of this progress, We should extend the same support for the wstETH bridged counterpart on Layer 2 (L2). Beyond upgrading Arbi/Optimism, incorporating these standards should be considered a fundamental feature for all future L2 extensions.
Optimism standard L2 token bridge (onlyEOA
modifier):
function withdraw(
address _l2Token,
uint256 _amount,
uint32 _minGasLimit,
bytes calldata _extraData
) external payable virtual onlyEOA {
_initiateWithdrawal(_l2Token, msg.sender, msg.sender, _amount, _minGasLimit, _extraData);
}
For the wstETH version, this check is missing:
function withdraw(
address l2Token_,
uint256 amount_,
uint32 l1Gas_,
bytes calldata data_
) external whenWithdrawalsEnabled onlySupportedL2Token(l2Token_) {
_initiateWithdrawal(msg.sender, msg.sender, amount_, l1Gas_, data_);
}
However, it should have been there due to known design decision of Optimism.
The L1 ERC20 token bridge reverts if the sender is an SCW:
lido-l2/contracts/optimism/L1ERC20TokenBridge.sol
Lines 58 to 60 in 471993c
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.