GithubHelp home page GithubHelp logo

sabotagebeats / weth8 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fubuloubu/weth8

0.0 1.0 0.0 12 KB

WETH Implementation in Vyper + gas comparisons to WETH9 and WETH10

Python 55.06% Vyper 44.94%

weth8's Introduction

Wrapped Ether (WETH8)

This experiment updates the canonical "Wrapped Ether" WETH(9) contract by implementing it in modern Vyper with several improvements for gas savings purposes. We also compare it to the WETH(10) project as another attempt to make an upgrade to WETH(9).

Wrapping Ether

Any operation that ends with this contract holding Wrapped Ether is prohibited.

deposit Ether in this contract to receive Wrapped Ether (WETH), which implements the ERC20 standard. WETH is interchangeable with Ether in a 1:1 basis.

withdraw Ether from this contract by unwrapping WETH from your wallet.

Approvals

When an account's allowance is set to max(uint256) it will not decrease through transferFrom or withdrawFrom calls.

WETH10 implements EIP2612 to set approvals through off-chain signatures.

Why WETH(8)?

The original WETH(9) contract uses "Kelvin Versioning", which is a unique way to do software versioning such that versions start at a high number and count down to version 0, at which point the software is considered finished and no further modifications are made. In the spirit of that original, we are decrementing this number by 1 to indicate the level of progress this implementation is making towards a final, more immutable copy.

Deployments

This contract is deployed on Goerli at: 0xD2082D10e36b169f4F2331867dcc1A719297037e

Credits

This project draws singificant inspiration from WETH(10) both in terms of goals and several of the upgrades that are applied.

Generated from Token template by Ape Academy

weth8's People

Contributors

fubuloubu avatar

Watchers

 avatar

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.