ERC-20
Overview
Max Total Supply
100,000,000,000 $9GAG
Holders
89
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
942,717,957.633333594451693532 $9GAGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NineGagToken
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-05-05 */ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.18; contract NineGagToken { string public constant name = "9GAG"; string public constant symbol = "$9GAG"; uint8 public constant decimals = 18; bool public limited; address public owner; uint256 immutable public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping(address => uint256)) public allowance; error Unauthorized(address caller); event Approval(address indexed owner, address indexed spender, uint256 amount); event Transfer(address indexed sender, address indexed recipient, uint256 amount); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { limited = true; owner = msg.sender; totalSupply = 100000000000 * 10 ** decimals; unchecked { balanceOf[address(msg.sender)] = balanceOf[address(msg.sender)] + totalSupply; } emit Transfer(address(0), address(msg.sender), totalSupply); } function approve(address spender, uint256 amount) external returns (bool) { _approve(msg.sender, spender, amount); return true; } function increaseAllowance(address spender, uint256 addedValue) external returns (bool) { _approve(msg.sender, spender, allowance[msg.sender][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) { _approve(msg.sender, spender, allowance[msg.sender][spender] - subtractedValue); return true; } function transfer(address recipient, uint256 amount) external returns (bool) { _transfer(msg.sender, recipient, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) { allowance[sender][msg.sender] -= amount; _transfer(sender, recipient, amount); return true; } function _approve(address _owner, address _spender, uint256 amount) private { allowance[_owner][_spender] = amount; emit Approval(_owner, _spender, amount); } function renounceOwnership() public virtual onlyOwner { limited = false; address oldOwner = owner; owner = address(0); emit OwnershipTransferred(oldOwner, owner); } function _transfer(address sender, address recipient, uint256 amount) private { if (limited && tx.origin != owner && !(balanceOf[recipient] + amount <= totalSupply / 100)) revert Unauthorized(msg.sender); balanceOf[sender] = balanceOf[sender] - amount; unchecked { balanceOf[recipient] = balanceOf[recipient] + amount; } allowance[sender][recipient] = 0; emit Transfer(sender, recipient, amount); } modifier onlyOwner() { if(owner != msg.sender) revert Unauthorized(msg.sender); _; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","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":"spender","type":"address"},{"internalType":"uint256","name":"amount","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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"limited","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506000805433610100026001600160a81b03199091161760011790556200003b6012600a620001b7565b6200004c9064174876e800620001cf565b608081905233600081815260016020908152604080832080548601905551938452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3620001e9565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620000f9578160001904821115620000dd57620000dd620000a2565b80851615620000eb57918102915b93841c9390800290620000bd565b509250929050565b6000826200011257506001620001b1565b816200012157506000620001b1565b81600181146200013a5760028114620001455762000165565b6001915050620001b1565b60ff841115620001595762000159620000a2565b50506001821b620001b1565b5060208310610133831016604e8410600b84101617156200018a575081810a620001b1565b620001968383620000b8565b8060001904821115620001ad57620001ad620000a2565b0290505b92915050565b6000620001c860ff84168362000101565b9392505050565b8082028115828204841417620001b157620001b1620000a2565b6080516107646200020c6000396000818161015001526104a901526107646000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063715018a61161008c57806395d89b411161006657806395d89b4114610227578063a457c2d71461024b578063a9059cbb1461025e578063dd62ed3e1461027157600080fd5b8063715018a6146101e0578063860a32ec146101ea5780638da5cb5b146101f757600080fd5b806323b872dd116100c857806323b872dd14610180578063313ce5671461019357806339509351146101ad57806370a08231146101c057600080fd5b806306fdde03146100ef578063095ea7b31461012857806318160ddd1461014b575b600080fd5b610112604051806040016040528060048152602001633947414760e01b81525081565b60405161011f91906105ab565b60405180910390f35b61013b610136366004610615565b61029c565b604051901515815260200161011f565b6101727f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161011f565b61013b61018e36600461063f565b6102b3565b61019b601281565b60405160ff909116815260200161011f565b61013b6101bb366004610615565b610303565b6101726101ce36600461067b565b60016020526000908152604090205481565b6101e861033f565b005b60005461013b9060ff1681565b60005461020f9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161011f565b61011260405180604001604052806005815260200164243947414760d81b81525081565b61013b610259366004610615565b6103d3565b61013b61026c366004610615565b61040a565b61017261027f36600461069d565b600260209081526000928352604080842090915290825290205481565b60006102a9338484610417565b5060015b92915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120805483919083906102e89084906106e6565b909155506102f99050848484610479565b5060019392505050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916102a991859061033a9086906106f9565b610417565b60005461010090046001600160a01b031633146103765760405163472511eb60e11b81523360048201526024015b60405180910390fd5b600080546001600160a81b031981168083556040516001600160a01b0361010060ff19909416849004811694939092049091169183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916102a991859061033a9086906106e6565b60006102a9338484610479565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60005460ff16801561049b575060005461010090046001600160a01b03163214155b80156104f357506104cd60647f000000000000000000000000000000000000000000000000000000000000000061070c565b6001600160a01b0383166000908152600160205260409020546104f19083906106f9565b115b156105135760405163472511eb60e11b815233600482015260240161036d565b6001600160a01b0383166000908152600160205260409020546105379082906106e6565b6001600160a01b0384811660008181526001602090815260408083209590955592861680825284822080548701905582825260028452848220818352845284822091909155925184815290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161046c565b600060208083528351808285015260005b818110156105d8578581018301518582016040015282016105bc565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461061057600080fd5b919050565b6000806040838503121561062857600080fd5b610631836105f9565b946020939093013593505050565b60008060006060848603121561065457600080fd5b61065d846105f9565b925061066b602085016105f9565b9150604084013590509250925092565b60006020828403121561068d57600080fd5b610696826105f9565b9392505050565b600080604083850312156106b057600080fd5b6106b9836105f9565b91506106c7602084016105f9565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102ad576102ad6106d0565b808201808211156102ad576102ad6106d0565b60008261072957634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212209f679d345a9f65b33c3108d82a709aa8a2007e00bf57a09a7383143174607e2e64736f6c63430008120033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063715018a61161008c57806395d89b411161006657806395d89b4114610227578063a457c2d71461024b578063a9059cbb1461025e578063dd62ed3e1461027157600080fd5b8063715018a6146101e0578063860a32ec146101ea5780638da5cb5b146101f757600080fd5b806323b872dd116100c857806323b872dd14610180578063313ce5671461019357806339509351146101ad57806370a08231146101c057600080fd5b806306fdde03146100ef578063095ea7b31461012857806318160ddd1461014b575b600080fd5b610112604051806040016040528060048152602001633947414760e01b81525081565b60405161011f91906105ab565b60405180910390f35b61013b610136366004610615565b61029c565b604051901515815260200161011f565b6101727f0000000000000000000000000000000000000001431e0fae6d7217caa000000081565b60405190815260200161011f565b61013b61018e36600461063f565b6102b3565b61019b601281565b60405160ff909116815260200161011f565b61013b6101bb366004610615565b610303565b6101726101ce36600461067b565b60016020526000908152604090205481565b6101e861033f565b005b60005461013b9060ff1681565b60005461020f9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161011f565b61011260405180604001604052806005815260200164243947414760d81b81525081565b61013b610259366004610615565b6103d3565b61013b61026c366004610615565b61040a565b61017261027f36600461069d565b600260209081526000928352604080842090915290825290205481565b60006102a9338484610417565b5060015b92915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120805483919083906102e89084906106e6565b909155506102f99050848484610479565b5060019392505050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916102a991859061033a9086906106f9565b610417565b60005461010090046001600160a01b031633146103765760405163472511eb60e11b81523360048201526024015b60405180910390fd5b600080546001600160a81b031981168083556040516001600160a01b0361010060ff19909416849004811694939092049091169183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916102a991859061033a9086906106e6565b60006102a9338484610479565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60005460ff16801561049b575060005461010090046001600160a01b03163214155b80156104f357506104cd60647f0000000000000000000000000000000000000001431e0fae6d7217caa000000061070c565b6001600160a01b0383166000908152600160205260409020546104f19083906106f9565b115b156105135760405163472511eb60e11b815233600482015260240161036d565b6001600160a01b0383166000908152600160205260409020546105379082906106e6565b6001600160a01b0384811660008181526001602090815260408083209590955592861680825284822080548701905582825260028452848220818352845284822091909155925184815290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161046c565b600060208083528351808285015260005b818110156105d8578581018301518582016040015282016105bc565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461061057600080fd5b919050565b6000806040838503121561062857600080fd5b610631836105f9565b946020939093013593505050565b60008060006060848603121561065457600080fd5b61065d846105f9565b925061066b602085016105f9565b9150604084013590509250925092565b60006020828403121561068d57600080fd5b610696826105f9565b9392505050565b600080604083850312156106b057600080fd5b6106b9836105f9565b91506106c7602084016105f9565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102ad576102ad6106d0565b808201808211156102ad576102ad6106d0565b60008261072957634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212209f679d345a9f65b33c3108d82a709aa8a2007e00bf57a09a7383143174607e2e64736f6c63430008120033
Deployed Bytecode Sourcemap
68:3043:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97:36;;;;;;;;;;;;;;;-1:-1:-1;;;97:36:0;;;;;;;;;;;;:::i;:::-;;;;;;;;1107:154;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;1107:154:0;1004:187:1;287:36:0;;;;;;;;1342:25:1;;;1330:2;1315:18;287:36:0;1196:177:1;1873:228:0;;;;;;:::i;:::-;;:::i;186:35::-;;219:2;186:35;;;;;1883:4:1;1871:17;;;1853:36;;1841:2;1826:18;186:35:0;1711:184:1;1269:205:0;;;;;;:::i;:::-;;:::i;332:45::-;;;;;;:::i;:::-;;;;;;;;;;;;;;2304:205;;;:::i;:::-;;230:19;;;;;;;;;258:20;;;;;;;;-1:-1:-1;;;;;258:20:0;;;;;;-1:-1:-1;;;;;2255:32:1;;;2237:51;;2225:2;2210:18;258:20:0;2091:203:1;140:39:0;;;;;;;;;;;;;;;-1:-1:-1;;;140:39:0;;;;;1482:215;;;;;;:::i;:::-;;:::i;1705:160::-;;;;;;:::i;:::-;;:::i;384:65::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;1107:154;1175:4;1192:37;1201:10;1213:7;1222:6;1192:8;:37::i;:::-;-1:-1:-1;1249:4:0;1107:154;;;;;:::o;1873:228::-;-1:-1:-1;;;;;1981:17:0;;1964:4;1981:17;;;:9;:17;;;;;;;;1999:10;1981:29;;;;;;;:39;;2014:6;;1981:29;1964:4;;1981:39;;2014:6;;1981:39;:::i;:::-;;;;-1:-1:-1;2033:36:0;;-1:-1:-1;2043:6:0;2051:9;2062:6;2033:9;:36::i;:::-;-1:-1:-1;2089:4:0;1873:228;;;;;:::o;1269:205::-;1377:10;1351:4;1398:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1398:30:0;;;;;;;;;;1351:4;;1368:74;;1389:7;;1398:43;;1431:10;;1398:43;:::i;:::-;1368:8;:74::i;2304:205::-;3042:5;;;;;-1:-1:-1;;;;;3042:5:0;3051:10;3042:19;3039:55;;3070:24;;-1:-1:-1;;;3070:24:0;;3083:10;3070:24;;;2237:51:1;2210:18;;3070:24:0;;;;;;;;3039:55;2379:5:::1;2369:15:::0;;-1:-1:-1;;;;;;2430:18:0;;;;;2464:37:::1;::::0;-1:-1:-1;;;;;2369:15:0::1;-1:-1:-1::0;;2369:15:0;;::::1;2414:5:::0;;::::1;::::0;::::1;::::0;2495;;;::::1;::::0;;::::1;::::0;2414;;2464:37:::1;::::0;2379:5;2464:37:::1;2358:151;2304:205::o:0;1482:215::-;1595:10;1569:4;1616:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1616:30:0;;;;;;;;;;1569:4;;1586:79;;1607:7;;1616:48;;1649:15;;1616:48;:::i;1705:160::-;1776:4;1793:40;1803:10;1815:9;1826:6;1793:9;:40::i;2113:183::-;-1:-1:-1;;;;;2200:17:0;;;;;;;:9;:17;;;;;;;;:27;;;;;;;;;;;;;:36;;;2254:34;;1342:25:1;;;2254:34:0;;1315:18:1;2254:34:0;;;;;;;;2113:183;;;:::o;2517:478::-;2610:7;;;;:29;;;;-1:-1:-1;2634:5:0;;;;;-1:-1:-1;;;;;2634:5:0;2621:9;:18;;2610:29;:86;;;;-1:-1:-1;2678:17:0;2692:3;2678:11;:17;:::i;:::-;-1:-1:-1;;;;;2645:20:0;;;;;;:9;:20;;;;;;:29;;2668:6;;2645:29;:::i;:::-;:50;2610:86;2606:123;;;2705:24;;-1:-1:-1;;;2705:24:0;;2718:10;2705:24;;;2237:51:1;2210:18;;2705:24:0;2091:203:1;2606:123:0;-1:-1:-1;;;;;2762:17:0;;;;;;:9;:17;;;;;;:26;;2782:6;;2762:26;:::i;:::-;-1:-1:-1;;;;;2742:17:0;;;;;;;:9;:17;;;;;;;;:46;;;;2849:20;;;;;;;;;;;:29;;2826:52;;2902:17;;;:9;:17;;;;;:28;;;;;;;;:32;;;;2952:35;;1342:25:1;;;2742:17:0;;2952:35;;1315:18:1;2952:35:0;1196:177:1;14:548;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:186::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;2051:29;2070:9;2051:29;:::i;:::-;2041:39;1900:186;-1:-1:-1;;;1900:186:1:o;2299:260::-;2367:6;2375;2428:2;2416:9;2407:7;2403:23;2399:32;2396:52;;;2444:1;2441;2434:12;2396:52;2467:29;2486:9;2467:29;:::i;:::-;2457:39;;2515:38;2549:2;2538:9;2534:18;2515:38;:::i;:::-;2505:48;;2299:260;;;;;:::o;2564:127::-;2625:10;2620:3;2616:20;2613:1;2606:31;2656:4;2653:1;2646:15;2680:4;2677:1;2670:15;2696:128;2763:9;;;2784:11;;;2781:37;;;2798:18;;:::i;2829:125::-;2894:9;;;2915:10;;;2912:36;;;2928:18;;:::i;2959:217::-;2999:1;3025;3015:132;;3069:10;3064:3;3060:20;3057:1;3050:31;3104:4;3101:1;3094:15;3132:4;3129:1;3122:15;3015:132;-1:-1:-1;3161:9:1;;2959:217::o
Swarm Source
ipfs://9f679d345a9f65b33c3108d82a709aa8a2007e00bf57a09a7383143174607e2e
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.