Token Wrapped Ether

Overview ERC20

Total Supply:
76,471.181106 WETH

Holders:
45,507 addresses

Profile Summary

 
Contract:
0xd909178cc99d318e4d46e7e66a972955859670e10xD909178CC99d318e4D46e7E66a972955859670E1

Decimals:
18
Balance
229.506018206338922949 WETH
0xaa4a5b1e014385ed8b7fac28e9acf7fed60f68be
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WETH

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2021-10-18
*/

pragma solidity =0.6.6;

contract WETH {
    string public name     = "Wrapped Ether";
    string public symbol   = "WETH";
    uint8  public decimals = 18;

    event  Approval(address indexed src, address indexed guy, uint wad);
    event  Transfer(address indexed src, address indexed dst, uint wad);
    event  Deposit(address indexed dst, uint wad);
    event  Withdrawal(address indexed src, uint wad);

    mapping (address => uint)                       public  balanceOf;
    mapping (address => mapping (address => uint))  public  allowance;

    receive() payable external {
        deposit();
    }
    function deposit() public payable {
        balanceOf[msg.sender] += msg.value;
        emit Deposit(msg.sender, msg.value);
    }
    function withdraw(uint wad) public {
        require(balanceOf[msg.sender] >= wad);
        balanceOf[msg.sender] -= wad;
        msg.sender.transfer(wad);
        emit Withdrawal(msg.sender, wad);
    }

    function totalSupply() public view returns (uint) {
        return address(this).balance;
    }

    function approve(address guy, uint wad) public returns (bool) {
        allowance[msg.sender][guy] = wad;
        emit Approval(msg.sender, guy, wad);
        return true;
    }

    function transfer(address dst, uint wad) public returns (bool) {
        return transferFrom(msg.sender, dst, wad);
    }

    function transferFrom(address src, address dst, uint wad)
        public
        returns (bool)
    {
        require(balanceOf[src] >= wad);

        if (src != msg.sender && allowance[src][msg.sender] != uint(-1)) {
            require(allowance[src][msg.sender] >= wad);
            allowance[src][msg.sender] -= wad;
        }

        balanceOf[src] -= wad;
        balanceOf[dst] += wad;

        emit Transfer(src, dst, wad);

        return true;
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"guy","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052600d60808190526c2bb930b83832b21022ba3432b960991b60a090815261002e916000919061007a565b50604080518082019091526004808252630ae8aa8960e31b602090920191825261005a9160019161007a565b506002805460ff1916601217905534801561007457600080fd5b50610115565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100bb57805160ff19168380011785556100e8565b828001600101855582156100e8579182015b828111156100e85782518255916020019190600101906100cd565b506100f49291506100f8565b5090565b61011291905b808211156100f457600081556001016100fe565b90565b6106fa806101246000396000f3fe6080604052600436106100a05760003560e01c8063313ce56711610064578063313ce5671461021f57806370a082311461024a57806395d89b411461027d578063a9059cbb14610292578063d0e30db0146102cb578063dd62ed3e146102d3576100af565b806306fdde03146100b4578063095ea7b31461013e57806318160ddd1461018b57806323b872dd146101b25780632e1a7d4d146101f5576100af565b366100af576100ad61030e565b005b600080fd5b3480156100c057600080fd5b506100c961035d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101035781810151838201526020016100eb565b50505050905090810190601f1680156101305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561014a57600080fd5b506101776004803603604081101561016157600080fd5b506001600160a01b0381351690602001356103eb565b604080519115158252519081900360200190f35b34801561019757600080fd5b506101a0610451565b60408051918252519081900360200190f35b3480156101be57600080fd5b50610177600480360360608110156101d557600080fd5b506001600160a01b03813581169160208101359091169060400135610455565b34801561020157600080fd5b506100ad6004803603602081101561021857600080fd5b5035610589565b34801561022b57600080fd5b5061023461061e565b6040805160ff9092168252519081900360200190f35b34801561025657600080fd5b506101a06004803603602081101561026d57600080fd5b50356001600160a01b0316610627565b34801561028957600080fd5b506100c9610639565b34801561029e57600080fd5b50610177600480360360408110156102b557600080fd5b506001600160a01b038135169060200135610693565b6100ad61030e565b3480156102df57600080fd5b506101a0600480360360408110156102f657600080fd5b506001600160a01b03813581169160200135166106a7565b33600081815260036020908152604091829020805434908101909155825190815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a2565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103e35780601f106103b8576101008083540402835291602001916103e3565b820191906000526020600020905b8154815290600101906020018083116103c657829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b4790565b6001600160a01b03831660009081526003602052604081205482111561047a57600080fd5b6001600160a01b03841633148015906104b857506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b15610518576001600160a01b03841660009081526004602090815260408083203384529091529020548211156104ed57600080fd5b6001600160a01b03841660009081526004602090815260408083203384529091529020805483900390555b6001600160a01b03808516600081815260036020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b336000908152600360205260409020548111156105a557600080fd5b33600081815260036020526040808220805485900390555183156108fc0291849190818181858888f193505050501580156105e4573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250565b60025460ff1681565b60036020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103e35780601f106103b8576101008083540402835291602001916103e3565b60006106a0338484610455565b9392505050565b60046020908152600092835260408084209091529082529020548156fea26469706673582212203be26cf855f1bdbdbbe651dfcf01eb369ec4baa58eb565e8b3f1b13a82ab499864736f6c63430006060033

Deployed ByteCode Sourcemap

27:1866:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;610:9;:7;:9::i;:::-;27:1866;;12:1:-1;9;2:12;48:40:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;48:40:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;48:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1093:181;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1093:181:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;1093:181:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;988:97;;5:9:-1;2:2;;;27:1;24;17:12;2:2;988:97:0;;;:::i;:::-;;;;;;;;;;;;;;;;1413:477;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1413:477:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;1413:477:0;;;;;;;;;;;;;;;;;:::i;772:208::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;772:208:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;772:208:0;;:::i;133:27::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;133:27:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;426:65;;5:9:-1;2:2;;;27:1;24;17:12;2:2;426:65:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;426:65:0;-1:-1:-1;;;;;426:65:0;;:::i;95:31::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;95:31:0;;;:::i;1282:123::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;1282:123:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;1282:123:0;;;;;;;;:::i;633:133::-;;;:::i;498:65::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;498:65:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;498:65:0;;;;;;;;;;:::i;633:133::-;688:10;678:21;;;;:9;:21;;;;;;;;;:34;;703:9;678:34;;;;;;728:30;;;;;;;;;;;;;;;;;633:133::o;48:40::-;;;;;;;;;;;;;;;-1:-1:-1;;48:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1093:181::-;1176:10;1149:4;1166:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1166:26:0;;;;;;;;;;;:32;;;1214:30;;;;;;;1149:4;;1166:26;;1176:10;;1214:30;;;;;;;;-1:-1:-1;1262:4:0;1093:181;;;;:::o;988:97::-;1056:21;988:97;:::o;1413:477::-;-1:-1:-1;;;;;1535:14:0;;1505:4;1535:14;;;:9;:14;;;;;;:21;-1:-1:-1;1535:21:0;1527:30;;12:1:-1;9;2:12;1527:30:0;-1:-1:-1;;;;;1574:17:0;;1581:10;1574:17;;;;:59;;-1:-1:-1;;;;;;1595:14:0;;;;;;:9;:14;;;;;;;;1610:10;1595:26;;;;;;;;-1:-1:-1;;1595:38:0;;1574:59;1570:182;;;-1:-1:-1;;;;;1658:14:0;;;;;;:9;:14;;;;;;;;1673:10;1658:26;;;;;;;;:33;-1:-1:-1;1658:33:0;1650:42;;12:1:-1;9;2:12;1650:42:0;-1:-1:-1;;;;;1707:14:0;;;;;;:9;:14;;;;;;;;1722:10;1707:26;;;;;;;:33;;;;;;;1570:182;-1:-1:-1;;;;;1764:14:0;;;;;;;:9;:14;;;;;;;;:21;;;;;;;1796:14;;;;;;;;;;:21;;;;;;1835:23;;;;;;;1796:14;;1835:23;;;;;;;;;;;-1:-1:-1;1878:4:0;1413:477;;;;;:::o;772:208::-;836:10;826:21;;;;:9;:21;;;;;;:28;-1:-1:-1;826:28:0;818:37;;12:1:-1;9;2:12;818:37:0;876:10;866:21;;;;:9;:21;;;;;;:28;;;;;;;905:24;;;;;;891:3;;905:24;;866:21;905:24;891:3;876:10;905:24;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;945:27:0;;;;;;;;956:10;;945:27;;;;;;;;;;772:208;:::o;133:27::-;;;;;;:::o;426:65::-;;;;;;;;;;;;;:::o;95:31::-;;;;;;;;;;;;;;;-1:-1:-1;;95:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1282:123;1339:4;1363:34;1376:10;1388:3;1393;1363:12;:34::i;:::-;1356:41;1282:123;-1:-1:-1;;;1282:123:0:o;498:65::-;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://3be26cf855f1bdbdbbe651dfcf01eb369ec4baa58eb565e8b3f1b13a82ab4998
Loading