ERC-20
Overview
Max Total Supply
1,000,000,000,000,000 ETHS 🥪
Holders
8
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,699,375,410,267.623266855792123253 ETHS 🥪Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EthereumSandwich
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-06-06 */ //SPDX-License-Identifier: Unlicense // ---------------------------------------------------------------------------- // 'EthereumSandwich' token contract // // Symbol : ETHS 🥪 // Name : Ethereum Sandwich // Total supply: 100000000000000 // Decimals : 18 // // TOTAL SUPPLY 1,000,000,000,000,000 // 50% Burned // // ---------------------------------------------------------------------------- pragma solidity ^0.7.0; contract Owned { modifier onlyOwner() { require(msg.sender == owner); _; } address owner; address newOwner; function changeOwner(address payable _newOwner) public onlyOwner { newOwner = _newOwner; } function acceptOwnership() public { if (msg.sender == newOwner) { owner = newOwner; } } } contract ERC20 { string public symbol; string public name; uint8 public decimals; uint256 public totalSupply; mapping (address=>uint256) balances; mapping (address=>mapping (address=>uint256)) allowed; event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); function balanceOf(address _owner) view public returns (uint256 balance) {return balances[_owner];} function transfer(address _to, uint256 _amount) public returns (bool success) { require (balances[msg.sender]>=_amount&&_amount>0&&balances[_to]+_amount>balances[_to]); balances[msg.sender]-=_amount; balances[_to]+=_amount; emit Transfer(msg.sender,_to,_amount); return true; } function transferFrom(address _from,address _to,uint256 _amount) public returns (bool success) { require (balances[_from]>=_amount&&allowed[_from][msg.sender]>=_amount&&_amount>0&&balances[_to]+_amount>balances[_to]); balances[_from]-=_amount; allowed[_from][msg.sender]-=_amount; balances[_to]+=_amount; emit Transfer(_from, _to, _amount); return true; } function approve(address _spender, uint256 _amount) public returns (bool success) { allowed[msg.sender][_spender]=_amount; emit Approval(msg.sender, _spender, _amount); return true; } function allowance(address _owner, address _spender) view public returns (uint256 remaining) { return allowed[_owner][_spender]; } } contract EthereumSandwich is Owned,ERC20{ uint256 public maxSupply; constructor(address _owner) { symbol = unicode"ETHS 🥪"; name = "Ethereum Sandwich"; decimals = 18; totalSupply = 1000000000000000*10**uint256(decimals); maxSupply = 1000000000000000*10**uint256(decimals); owner = _owner; balances[owner] = totalSupply; } receive() external payable { revert(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516109023803806109028339818101604052602081101561003357600080fd5b50516040805180820190915260098082526822aa242990784fd2d560b91b6020909201918252610065916002916100fb565b506040805180820190915260118082527008ae8d0cae4caeada40a6c2dcc8eed2c6d607b1b602090920191825261009e916003916100fb565b5060048054601260ff19909116179081905560ff16600a0a66038d7ea4c680000260058190556008819055600080546001600160a01b0319166001600160a01b03938416178082559092168252600660205260409091205561019c565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826101315760008555610177565b82601f1061014a57805160ff1916838001178555610177565b82800160010185558215610177579182015b8281111561017757825182559160200191906001019061015c565b50610183929150610187565b5090565b5b808211156101835760008155600101610188565b610757806101ab6000396000f3fe6080604052600436106100ab5760003560e01c806379ba50971161006457806379ba50971461025957806395d89b4114610270578063a6f9dae114610285578063a9059cbb146102b8578063d5abeb01146102f1578063dd62ed3e14610306576100b5565b806306fdde03146100ba578063095ea7b31461014457806318160ddd1461019157806323b872dd146101b8578063313ce567146101fb57806370a0823114610226576100b5565b366100b557600080fd5b600080fd5b3480156100c657600080fd5b506100cf610341565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101095781810151838201526020016100f1565b50505050905090810190601f1680156101365780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015057600080fd5b5061017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103cf565b604080519115158252519081900360200190f35b34801561019d57600080fd5b506101a6610435565b60408051918252519081900360200190f35b3480156101c457600080fd5b5061017d600480360360608110156101db57600080fd5b506001600160a01b0381358116916020810135909116906040013561043b565b34801561020757600080fd5b50610210610548565b6040805160ff9092168252519081900360200190f35b34801561023257600080fd5b506101a66004803603602081101561024957600080fd5b50356001600160a01b0316610551565b34801561026557600080fd5b5061026e61056c565b005b34801561027c57600080fd5b506100cf6105a4565b34801561029157600080fd5b5061026e600480360360208110156102a857600080fd5b50356001600160a01b03166105fc565b3480156102c457600080fd5b5061017d600480360360408110156102db57600080fd5b506001600160a01b038135169060200135610635565b3480156102fd57600080fd5b506101a66106f0565b34801561031257600080fd5b506101a66004803603604081101561032957600080fd5b506001600160a01b03813581169160200135166106f6565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b505050505081565b3360008181526007602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60055481565b6001600160a01b038316600090815260066020526040812054821180159061048657506001600160a01b03841660009081526007602090815260408083203384529091529020548211155b80156104925750600082115b80156104b757506001600160a01b038316600090815260066020526040902054828101115b6104c057600080fd5b6001600160a01b0380851660008181526006602081815260408084208054899003905560078252808420338552825280842080548990039055948816808452918152918490208054870190558351868152935190937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a35060019392505050565b60045460ff1681565b6001600160a01b031660009081526006602052604090205490565b6001546001600160a01b03163314156105a257600154600080546001600160a01b0319166001600160a01b039092169190911790555b565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156103c75780601f1061039c576101008083540402835291602001916103c7565b6000546001600160a01b0316331461061357600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604081205482118015906106545750600082115b801561067957506001600160a01b038316600090815260066020526040902054828101115b61068257600080fd5b336000818152600660209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60085481565b6001600160a01b0391821660009081526007602090815260408083209390941682529190915220549056fea2646970667358221220c45422520942e6b89ddb7dd32929307e786ab38a2b46d49e877d82fdf672ba5464736f6c63430007060033000000000000000000000000278c5caae4cd1967bc177458c9670f5ecbdc3ee9
Deployed Bytecode
0x6080604052600436106100ab5760003560e01c806379ba50971161006457806379ba50971461025957806395d89b4114610270578063a6f9dae114610285578063a9059cbb146102b8578063d5abeb01146102f1578063dd62ed3e14610306576100b5565b806306fdde03146100ba578063095ea7b31461014457806318160ddd1461019157806323b872dd146101b8578063313ce567146101fb57806370a0823114610226576100b5565b366100b557600080fd5b600080fd5b3480156100c657600080fd5b506100cf610341565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101095781810151838201526020016100f1565b50505050905090810190601f1680156101365780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015057600080fd5b5061017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103cf565b604080519115158252519081900360200190f35b34801561019d57600080fd5b506101a6610435565b60408051918252519081900360200190f35b3480156101c457600080fd5b5061017d600480360360608110156101db57600080fd5b506001600160a01b0381358116916020810135909116906040013561043b565b34801561020757600080fd5b50610210610548565b6040805160ff9092168252519081900360200190f35b34801561023257600080fd5b506101a66004803603602081101561024957600080fd5b50356001600160a01b0316610551565b34801561026557600080fd5b5061026e61056c565b005b34801561027c57600080fd5b506100cf6105a4565b34801561029157600080fd5b5061026e600480360360208110156102a857600080fd5b50356001600160a01b03166105fc565b3480156102c457600080fd5b5061017d600480360360408110156102db57600080fd5b506001600160a01b038135169060200135610635565b3480156102fd57600080fd5b506101a66106f0565b34801561031257600080fd5b506101a66004803603604081101561032957600080fd5b506001600160a01b03813581169160200135166106f6565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b505050505081565b3360008181526007602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60055481565b6001600160a01b038316600090815260066020526040812054821180159061048657506001600160a01b03841660009081526007602090815260408083203384529091529020548211155b80156104925750600082115b80156104b757506001600160a01b038316600090815260066020526040902054828101115b6104c057600080fd5b6001600160a01b0380851660008181526006602081815260408084208054899003905560078252808420338552825280842080548990039055948816808452918152918490208054870190558351868152935190937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a35060019392505050565b60045460ff1681565b6001600160a01b031660009081526006602052604090205490565b6001546001600160a01b03163314156105a257600154600080546001600160a01b0319166001600160a01b039092169190911790555b565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156103c75780601f1061039c576101008083540402835291602001916103c7565b6000546001600160a01b0316331461061357600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604081205482118015906106545750600082115b801561067957506001600160a01b038316600090815260066020526040902054828101115b61068257600080fd5b336000818152600660209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60085481565b6001600160a01b0391821660009081526007602090815260408083209390941682529190915220549056fea2646970667358221220c45422520942e6b89ddb7dd32929307e786ab38a2b46d49e877d82fdf672ba5464736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000278c5caae4cd1967bc177458c9670f5ecbdc3ee9
-----Decoded View---------------
Arg [0] : _owner (address): 0x278C5CAae4CD1967bC177458c9670F5eCBDc3ee9
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000278c5caae4cd1967bc177458c9670f5ecbdc3ee9
Deployed Bytecode Sourcemap
2491:473:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2945:8;;;2491:473;;;;895:18;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2121:215;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2121:215:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;948:26;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1701:414;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1701:414:0;;;;;;;;;;;;;;;;;:::i;920:21::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1257:99;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1257:99:0;-1:-1:-1;;;;;1257:99:0;;:::i;716:123::-;;;;;;;;;;;;;:::i;:::-;;868:20;;;;;;;;;;;;;:::i;606:104::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;606:104:0;-1:-1:-1;;;;;606:104:0;;:::i;1368:327::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1368:327:0;;;;;;;;:::i;2538:24::-;;;;;;;;;;;;;:::i;2342:142::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2342:142:0;;;;;;;;;;:::i;895:18::-;;;;;;;;;;;;;;;-1:-1:-1;;895:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2121:215::-;2222:10;2189:12;2214:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2214:29:0;;;;;;;;;;;:37;;;2267:39;;;;;;;2189:12;;2214:29;;2222:10;;2267:39;;;;;;;;-1:-1:-1;2324:4:0;2121:215;;;;:::o;948:26::-;;;;:::o;1701:414::-;-1:-1:-1;;;;;1816:15:0;;1782:12;1816:15;;;:8;:15;;;;;;:24;-1:-1:-1;1816:24:0;;;:61;;-1:-1:-1;;;;;;1842:14:0;;;;;;:7;:14;;;;;;;;1857:10;1842:26;;;;;;;;:35;-1:-1:-1;1842:35:0;1816:61;:72;;;;;1887:1;1879:7;:9;1816:72;:109;;;;-1:-1:-1;;;;;;1912:13:0;;;;;;:8;:13;;;;;;1890:21;;;:35;1816:109;1807:119;;;;;;-1:-1:-1;;;;;1937:15:0;;;;;;;:8;:15;;;;;;;;:24;;;;;;;1972:7;:14;;;;;1987:10;1972:26;;;;;;;:35;;;;;;;2018:13;;;;;;;;;;;;;:22;;;;;;2056:29;;;;;;;2018:13;;2056:29;;;;;;;;;-1:-1:-1;2103:4:0;1701:414;;;;;:::o;920:21::-;;;;;;:::o;1257:99::-;-1:-1:-1;;;;;1338:16:0;1313:15;1338:16;;;:8;:16;;;;;;;1257:99::o;716:123::-;779:8;;-1:-1:-1;;;;;779:8:0;765:10;:22;761:71;;;812:8;;;804:16;;-1:-1:-1;;;;;;804:16:0;-1:-1:-1;;;;;812:8:0;;;804:16;;;;;;761:71;716:123::o;868:20::-;;;;;;;;;;;;;;-1:-1:-1;;868:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;606:104;531:5;;-1:-1:-1;;;;;531:5:0;517:10;:19;509:28;;;;;;682:8:::1;:20:::0;;-1:-1:-1;;;;;;682:20:0::1;-1:-1:-1::0;;;;;682:20:0;;;::::1;::::0;;;::::1;::::0;;606:104::o;1368:327::-;1475:10;1432:12;1466:20;;;:8;:20;;;;;;:29;-1:-1:-1;1466:29:0;;;:40;;;1505:1;1497:7;:9;1466:40;:77;;;;-1:-1:-1;;;;;;1530:13:0;;;;;;:8;:13;;;;;;1508:21;;;:35;1466:77;1457:87;;;;;;1564:10;1555:20;;;;:8;:20;;;;;;;;:29;;;;;;;-1:-1:-1;;;;;1595:13:0;;;;;;;;;:22;;;;;;1633:32;;;;;;;1595:13;;1564:10;1633:32;;;;;;;;;;;-1:-1:-1;1683:4:0;1368:327;;;;:::o;2538:24::-;;;;:::o;2342:142::-;-1:-1:-1;;;;;2451:15:0;;;2416:17;2451:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;2342:142::o
Swarm Source
ipfs://c45422520942e6b89ddb7dd32929307e786ab38a2b46d49e877d82fdf672ba54
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.