Giter Site home page Giter Site logo

lido-l2's Issues

Proposal for Implementing ERC-2612 and ERC-1271 Support for (w)stETH on L2

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.

L2 bridge missing EOA check for withdraw

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.