ERC-20
Overview
Max Total Supply
2,615,847 WETH
Holders
229
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
WrappedEther
Compiler Version
v0.4.25+commit.59dbf8f1
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-03-14 */ pragma solidity ^0.4.25; contract WrappedEther { // Track how many tokens are owned by each address. mapping (address => uint256) public balanceOf; string public name = "Wrapped Ether"; string public symbol = "WETH"; uint8 public decimals = 18; uint256 public totalSupply = 2615847 * (uint256(10) ** decimals); event Transfer(address indexed from, address indexed to, uint256 value); constructor() public { // Initially assign all tokens to the contract's creator. balanceOf[msg.sender] = totalSupply; emit Transfer(address(0), msg.sender, totalSupply); } function transfer(address to, uint256 value) public returns (bool success) { require(balanceOf[msg.sender] >= value); balanceOf[msg.sender] -= value; // deduct from sender's balance balanceOf[to] += value; // add to recipient's balance emit Transfer(msg.sender, to, value); return true; } event Approval(address indexed owner, address indexed spender, uint256 value); mapping(address => mapping(address => uint256)) public allowance; function approve(address spender, uint256 value) public returns (bool success) { allowance[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function transferFrom(address from, address to, uint256 value) public returns (bool success) { require(value <= balanceOf[from]); require(value <= allowance[from][msg.sender]); balanceOf[from] -= value; balanceOf[to] += value; allowance[from][msg.sender] -= value; emit Transfer(from, to, value); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
60c0604052600d60808190527f577261707065642045746865720000000000000000000000000000000000000060a090815261003e91600191906100ff565b506040805180820190915260048082527f57455448000000000000000000000000000000000000000000000000000000006020909201918252610083916002916100ff565b5060038054601260ff19909116179081905560ff16600a0a6227ea27026004553480156100af57600080fd5b5060045433600081815260208181526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a361019a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014057805160ff191683800117855561016d565b8280016001018555821561016d579182015b8281111561016d578251825591602001919060010190610152565b5061017992915061017d565b5090565b61019791905b808211156101795760008155600101610183565b90565b610576806101a96000396000f3006080604052600436106100985763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461009d578063095ea7b31461012757806318160ddd1461015f57806323b872dd14610186578063313ce567146101b057806370a08231146101db57806395d89b41146101fc578063a9059cbb14610211578063dd62ed3e14610235575b600080fd5b3480156100a957600080fd5b506100b261025c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100ec5781810151838201526020016100d4565b50505050905090810190601f1680156101195780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013357600080fd5b5061014b600160a060020a03600435166024356102e9565b604080519115158252519081900360200190f35b34801561016b57600080fd5b5061017461034f565b60408051918252519081900360200190f35b34801561019257600080fd5b5061014b600160a060020a0360043581169060243516604435610355565b3480156101bc57600080fd5b506101c5610432565b6040805160ff9092168252519081900360200190f35b3480156101e757600080fd5b50610174600160a060020a036004351661043b565b34801561020857600080fd5b506100b261044d565b34801561021d57600080fd5b5061014b600160a060020a03600435166024356104a5565b34801561024157600080fd5b50610174600160a060020a036004358116906024351661052d565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102e15780601f106102b6576101008083540402835291602001916102e1565b820191906000526020600020905b8154815290600101906020018083116102c457829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b600160a060020a03831660009081526020819052604081205482111561037a57600080fd5b600160a060020a03841660009081526005602090815260408083203384529091529020548211156103aa57600080fd5b600160a060020a038085166000818152602081815260408083208054889003905593871680835284832080548801905583835260058252848320338452825291849020805487900390558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60035460ff1681565b60006020819052908152604090205481565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156102e15780601f106102b6576101008083540402835291602001916102e1565b336000908152602081905260408120548211156104c157600080fd5b3360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b6005602090815260009283526040808420909152908252902054815600a165627a7a72305820ffe55c5bcf4e257723d25feae521890e86ec13459a4b0e24c12cd30f0247fec50029
Deployed Bytecode
0x6080604052600436106100985763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461009d578063095ea7b31461012757806318160ddd1461015f57806323b872dd14610186578063313ce567146101b057806370a08231146101db57806395d89b41146101fc578063a9059cbb14610211578063dd62ed3e14610235575b600080fd5b3480156100a957600080fd5b506100b261025c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100ec5781810151838201526020016100d4565b50505050905090810190601f1680156101195780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013357600080fd5b5061014b600160a060020a03600435166024356102e9565b604080519115158252519081900360200190f35b34801561016b57600080fd5b5061017461034f565b60408051918252519081900360200190f35b34801561019257600080fd5b5061014b600160a060020a0360043581169060243516604435610355565b3480156101bc57600080fd5b506101c5610432565b6040805160ff9092168252519081900360200190f35b3480156101e757600080fd5b50610174600160a060020a036004351661043b565b34801561020857600080fd5b506100b261044d565b34801561021d57600080fd5b5061014b600160a060020a03600435166024356104a5565b34801561024157600080fd5b50610174600160a060020a036004358116906024351661052d565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102e15780601f106102b6576101008083540402835291602001916102e1565b820191906000526020600020905b8154815290600101906020018083116102c457829003601f168201915b505050505081565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b600160a060020a03831660009081526020819052604081205482111561037a57600080fd5b600160a060020a03841660009081526005602090815260408083203384529091529020548211156103aa57600080fd5b600160a060020a038085166000818152602081815260408083208054889003905593871680835284832080548801905583835260058252848320338452825291849020805487900390558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60035460ff1681565b60006020819052908152604090205481565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156102e15780601f106102b6576101008083540402835291602001916102e1565b336000908152602081905260408120548211156104c157600080fd5b3360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b6005602090815260009283526040808420909152908252902054815600a165627a7a72305820ffe55c5bcf4e257723d25feae521890e86ec13459a4b0e24c12cd30f0247fec50029
Deployed Bytecode Sourcemap
28:1783:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;168:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;168:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;168:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1163:233;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1163:233:0;-1:-1:-1;;;;;1163:233:0;;;;;;;;;;;;;;;;;;;;;;;;;282:64;;8:9:-1;5:2;;;30:1;27;20:12;5:2;282:64:0;;;;;;;;;;;;;;;;;;;;1404:404;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1404:404:0;-1:-1:-1;;;;;1404:404:0;;;;;;;;;;;;247:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;247:26:0;;;;;;;;;;;;;;;;;;;;;;;114:45;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;114:45:0;-1:-1:-1;;;;;114:45:0;;;;;211:29;;8:9:-1;5:2;;;30:1;27;20:12;5:2;211:29:0;;;;646:350;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;646:350:0;-1:-1:-1;;;;;646:350:0;;;;;;;1090:64;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1090:64:0;-1:-1:-1;;;;;1090:64:0;;;;;;;;;;168:36;;;;;;;;;;;;;;;-1:-1:-1;;168:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1163:233::-;1286:10;1246:12;1276:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1276:30:0;;;;;;;;;;;:38;;;1330:36;;;;;;;1246:12;;1276:30;;1286:10;;1330:36;;;;;;;;-1:-1:-1;1384:4:0;1163:233;;;;:::o;282:64::-;;;;:::o;1404:404::-;-1:-1:-1;;;;;1548:15:0;;1501:12;1548:15;;;;;;;;;;;1539:24;;;1531:33;;;;;;-1:-1:-1;;;;;1592:15:0;;;;;;:9;:15;;;;;;;;1608:10;1592:27;;;;;;;;1583:36;;;1575:45;;;;;;-1:-1:-1;;;;;1633:15:0;;;:9;:15;;;;;;;;;;;:24;;;;;;;1668:13;;;;;;;;;:22;;;;;;1701:15;;;:9;:15;;;;;1717:10;1701:27;;;;;;;;:36;;;;;;;1753:25;;;;;;;1668:13;;1753:25;;;;;;;;;;;-1:-1:-1;1796:4:0;1404:404;;;;;:::o;247:26::-;;;;;;:::o;114:45::-;;;;;;;;;;;;;;:::o;211:29::-;;;;;;;;;;;;;;-1:-1:-1;;211:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;646:350;750:10;707:12;740:21;;;;;;;;;;;:30;-1:-1:-1;740:30:0;732:39;;;;;;794:10;784:9;:21;;;;;;;;;;;:30;;;;;;;-1:-1:-1;;;;;858:13:0;;;;;;;;;:22;;;;;;935:31;;;;;;;858:13;;794:10;935:31;;;;;;;;;;;-1:-1:-1;984:4:0;646:350;;;;:::o;1090:64::-;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
bzzr://ffe55c5bcf4e257723d25feae521890e86ec13459a4b0e24c12cd30f0247fec5
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.