ERC-20
Overview
Max Total Supply
3,395,612.593278056752958372 MINTS
Holders
28
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
56,223.421776510382956639 MINTSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BaseV1
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-09-12 */ // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.11; contract BaseV1 { string public constant symbol = "MINTS"; string public constant name = "Minty DAO"; uint8 public constant decimals = 18; uint public totalSupply = 0; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) public allowance; address public minter; event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); constructor() { minter = msg.sender; _mint(msg.sender, 0); } // No checks as its meant to be once off to set minting rights to BaseV1 Minter function setMinter(address _minter) external { require(msg.sender == minter); minter = _minter; } function approve(address _spender, uint _value) external returns (bool) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function _mint(address _to, uint _amount) internal returns (bool) { balanceOf[_to] += _amount; totalSupply += _amount; emit Transfer(address(0x0), _to, _amount); return true; } function _transfer(address _from, address _to, uint _value) internal returns (bool) { balanceOf[_from] -= _value; balanceOf[_to] += _value; emit Transfer(_from, _to, _value); return true; } function transfer(address _to, uint _value) external returns (bool) { return _transfer(msg.sender, _to, _value); } function transferFrom(address _from, address _to, uint _value) external returns (bool) { uint allowed_from = allowance[_from][msg.sender]; if (allowed_from != type(uint).max) { allowance[_from][msg.sender] -= _value; } return _transfer(_from, _to, _value); } function mint(address account, uint amount) external returns (bool) { require(msg.sender == minter); _mint(account, amount); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":[{"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":"_value","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":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","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":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000805534801561001457600080fd5b50600380546001600160a01b0319163390811790915561003590600061003b565b506100f2565b6001600160a01b0382166000908152600160205260408120805483919083906100659084906100cc565b925050819055508160008082825461007d91906100cc565b90915550506040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350600192915050565b600082198211156100ed57634e487b7160e01b600052601160045260246000fd5b500190565b61066e806101016000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806340c10f191161007157806340c10f191461018957806370a082311461019c57806395d89b41146101bc578063a9059cbb146101e0578063dd62ed3e146101f3578063fca3b5aa1461021e57600080fd5b806306fdde03146100b957806307546172146100f7578063095ea7b31461012257806318160ddd1461014557806323b872dd1461015c578063313ce5671461016f575b600080fd5b6100e1604051806040016040528060098152602001684d696e74792044414f60b81b81525081565b6040516100ee91906104ce565b60405180910390f35b60035461010a906001600160a01b031681565b6040516001600160a01b0390911681526020016100ee565b61013561013036600461053f565b610233565b60405190151581526020016100ee565b61014e60005481565b6040519081526020016100ee565b61013561016a366004610569565b61029f565b610177601281565b60405160ff90911681526020016100ee565b61013561019736600461053f565b610319565b61014e6101aa3660046105a5565b60016020526000908152604090205481565b6100e1604051806040016040528060058152602001644d494e545360d81b81525081565b6101356101ee36600461053f565b610347565b61014e6102013660046105c0565b600260209081526000928352604080842090915290825290205481565b61023161022c3660046105a5565b61035b565b005b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028e9086815260200190565b60405180910390a350600192915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120546000198114610305576001600160a01b0385166000908152600260209081526040808320338452909152812080548592906102ff908490610609565b90915550505b610310858585610394565b95945050505050565b6003546000906001600160a01b0316331461033357600080fd5b61033d8383610449565b5060019392505050565b6000610354338484610394565b9392505050565b6003546001600160a01b0316331461037257600080fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166000908152600160205260408120805483919083906103be908490610609565b90915550506001600160a01b038316600090815260016020526040812080548492906103eb908490610620565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161043791815260200190565b60405180910390a35060019392505050565b6001600160a01b038216600090815260016020526040812080548391908390610473908490610620565b925050819055508160008082825461048b9190610620565b90915550506040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161028e565b600060208083528351808285015260005b818110156104fb578581018301518582016040015282016104df565b8181111561050d576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461053a57600080fd5b919050565b6000806040838503121561055257600080fd5b61055b83610523565b946020939093013593505050565b60008060006060848603121561057e57600080fd5b61058784610523565b925061059560208501610523565b9150604084013590509250925092565b6000602082840312156105b757600080fd5b61035482610523565b600080604083850312156105d357600080fd5b6105dc83610523565b91506105ea60208401610523565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008282101561061b5761061b6105f3565b500390565b60008219821115610633576106336105f3565b50019056fea2646970667358221220d1af71383ebae00828484489c4210b7239d3d8e6e9e7ec83de737c6b904838ab64736f6c634300080b0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806340c10f191161007157806340c10f191461018957806370a082311461019c57806395d89b41146101bc578063a9059cbb146101e0578063dd62ed3e146101f3578063fca3b5aa1461021e57600080fd5b806306fdde03146100b957806307546172146100f7578063095ea7b31461012257806318160ddd1461014557806323b872dd1461015c578063313ce5671461016f575b600080fd5b6100e1604051806040016040528060098152602001684d696e74792044414f60b81b81525081565b6040516100ee91906104ce565b60405180910390f35b60035461010a906001600160a01b031681565b6040516001600160a01b0390911681526020016100ee565b61013561013036600461053f565b610233565b60405190151581526020016100ee565b61014e60005481565b6040519081526020016100ee565b61013561016a366004610569565b61029f565b610177601281565b60405160ff90911681526020016100ee565b61013561019736600461053f565b610319565b61014e6101aa3660046105a5565b60016020526000908152604090205481565b6100e1604051806040016040528060058152602001644d494e545360d81b81525081565b6101356101ee36600461053f565b610347565b61014e6102013660046105c0565b600260209081526000928352604080842090915290825290205481565b61023161022c3660046105a5565b61035b565b005b3360008181526002602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028e9086815260200190565b60405180910390a350600192915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120546000198114610305576001600160a01b0385166000908152600260209081526040808320338452909152812080548592906102ff908490610609565b90915550505b610310858585610394565b95945050505050565b6003546000906001600160a01b0316331461033357600080fd5b61033d8383610449565b5060019392505050565b6000610354338484610394565b9392505050565b6003546001600160a01b0316331461037257600080fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166000908152600160205260408120805483919083906103be908490610609565b90915550506001600160a01b038316600090815260016020526040812080548492906103eb908490610620565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161043791815260200190565b60405180910390a35060019392505050565b6001600160a01b038216600090815260016020526040812080548391908390610473908490610620565b925050819055508160008082825461048b9190610620565b90915550506040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161028e565b600060208083528351808285015260005b818110156104fb578581018301518582016040015282016104df565b8181111561050d576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461053a57600080fd5b919050565b6000806040838503121561055257600080fd5b61055b83610523565b946020939093013593505050565b60008060006060848603121561057e57600080fd5b61058784610523565b925061059560208501610523565b9150604084013590509250925092565b6000602082840312156105b757600080fd5b61035482610523565b600080604083850312156105d357600080fd5b6105dc83610523565b91506105ea60208401610523565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008282101561061b5761061b6105f3565b500390565b60008219821115610633576106336105f3565b50019056fea2646970667358221220d1af71383ebae00828484489c4210b7239d3d8e6e9e7ec83de737c6b904838ab64736f6c634300080b0033
Deployed Bytecode Sourcemap
73:2115:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144:41;;;;;;;;;;;;;;;-1:-1:-1;;;144:41:0;;;;;;;;;;;;:::i;:::-;;;;;;;;388:21;;;;;-1:-1:-1;;;;;388:21:0;;;;;;-1:-1:-1;;;;;780:32:1;;;762:51;;750:2;735:18;388:21:0;616:203:1;880:207:0;;;;;;:::i;:::-;;:::i;:::-;;;1426:14:1;;1419:22;1401:41;;1389:2;1374:18;880:207:0;1261:187:1;234:27:0;;;;;;;;;1599:25:1;;;1587:2;1572:18;234:27:0;1453:177:1;1694:312:0;;;;;;:::i;:::-;;:::i;192:35::-;;225:2;192:35;;;;;2140:4:1;2128:17;;;2110:36;;2098:2;2083:18;192:35:0;1968:184:1;2014:171:0;;;;;;:::i;:::-;;:::i;270:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;98:39;;;;;;;;;;;;;;;-1:-1:-1;;;98:39:0;;;;;1558:128;;;;;;:::i;:::-;;:::i;318:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;752:120;;;;;;:::i;:::-;;:::i;:::-;;880:207;973:10;946:4;963:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;963:31:0;;;;;;;;;;:40;;;1019:38;946:4;;963:31;;1019:38;;;;997:6;1599:25:1;;1587:2;1572:18;;1453:177;1019:38:0;;;;;;;;-1:-1:-1;1075:4:0;880:207;;;;:::o;1694:312::-;-1:-1:-1;;;;;1812:16:0;;1775:4;1812:16;;;:9;:16;;;;;;;;1829:10;1812:28;;;;;;;;-1:-1:-1;;1855:30:0;;1851:101;;-1:-1:-1;;;;;1902:16:0;;;;;;:9;:16;;;;;;;;1919:10;1902:28;;;;;;;:38;;1934:6;;1902:16;:38;;1934:6;;1902:38;:::i;:::-;;;;-1:-1:-1;;1851:101:0;1969:29;1979:5;1986:3;1991:6;1969:9;:29::i;:::-;1962:36;1694:312;-1:-1:-1;;;;;1694:312:0:o;2014:171::-;2115:6;;2076:4;;-1:-1:-1;;;;;2115:6:0;2101:10;:20;2093:29;;;;;;2133:22;2139:7;2148:6;2133:5;:22::i;:::-;-1:-1:-1;2173:4:0;;2014:171;-1:-1:-1;;;2014:171:0:o;1558:128::-;1620:4;1644:34;1654:10;1666:3;1671:6;1644:9;:34::i;:::-;1637:41;1558:128;-1:-1:-1;;;1558:128:0:o;752:120::-;830:6;;-1:-1:-1;;;;;830:6:0;816:10;:20;808:29;;;;;;848:6;:16;;-1:-1:-1;;;;;;848:16:0;-1:-1:-1;;;;;848:16:0;;;;;;;;;;752:120::o;1320:230::-;-1:-1:-1;;;;;1415:16:0;;1398:4;1415:16;;;:9;:16;;;;;:26;;1435:6;;1415:16;1398:4;;1415:26;;1435:6;;1415:26;:::i;:::-;;;;-1:-1:-1;;;;;;;1452:14:0;;;;;;:9;:14;;;;;:24;;1470:6;;1452:14;:24;;1470:6;;1452:24;:::i;:::-;;;;;;;;1508:3;-1:-1:-1;;;;;1492:28:0;1501:5;-1:-1:-1;;;;;1492:28:0;;1513:6;1492:28;;;;1599:25:1;;1587:2;1572:18;;1453:177;1492:28:0;;;;;;;;-1:-1:-1;1538:4:0;1320:230;;;;;:::o;1095:217::-;-1:-1:-1;;;;;1172:14:0;;1155:4;1172:14;;;:9;:14;;;;;:25;;1190:7;;1172:14;1155:4;;1172:25;;1190:7;;1172:25;:::i;:::-;;;;;;;;1223:7;1208:11;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;1246:36:0;;1599:25:1;;;-1:-1:-1;;;;;1246:36:0;;;1263:3;;1246:36;;1587:2:1;1572:18;1246:36:0;1453:177:1;14:597;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;;;452:6;449:1;446:13;443:91;;;522:1;517:2;508:6;497:9;493:22;489:31;482:42;443:91;-1:-1:-1;595:2:1;574:15;-1:-1:-1;;570:29:1;555:45;;;;602:2;551:54;;14:597;-1:-1:-1;;;14:597:1:o;824:173::-;892:20;;-1:-1:-1;;;;;941:31:1;;931:42;;921:70;;987:1;984;977:12;921:70;824:173;;;:::o;1002:254::-;1070:6;1078;1131:2;1119:9;1110:7;1106:23;1102:32;1099:52;;;1147:1;1144;1137:12;1099:52;1170:29;1189:9;1170:29;:::i;:::-;1160:39;1246:2;1231:18;;;;1218:32;;-1:-1:-1;;;1002:254:1:o;1635:328::-;1712:6;1720;1728;1781:2;1769:9;1760:7;1756:23;1752:32;1749:52;;;1797:1;1794;1787:12;1749:52;1820:29;1839:9;1820:29;:::i;:::-;1810:39;;1868:38;1902:2;1891:9;1887:18;1868:38;:::i;:::-;1858:48;;1953:2;1942:9;1938:18;1925:32;1915:42;;1635:328;;;;;:::o;2157:186::-;2216:6;2269:2;2257:9;2248:7;2244:23;2240:32;2237:52;;;2285:1;2282;2275:12;2237:52;2308:29;2327:9;2308:29;:::i;2348:260::-;2416:6;2424;2477:2;2465:9;2456:7;2452:23;2448:32;2445:52;;;2493:1;2490;2483:12;2445:52;2516:29;2535:9;2516:29;:::i;:::-;2506:39;;2564:38;2598:2;2587:9;2583:18;2564:38;:::i;:::-;2554:48;;2348:260;;;;;:::o;2613:127::-;2674:10;2669:3;2665:20;2662:1;2655:31;2705:4;2702:1;2695:15;2729:4;2726:1;2719:15;2745:125;2785:4;2813:1;2810;2807:8;2804:34;;;2818:18;;:::i;:::-;-1:-1:-1;2855:9:1;;2745:125::o;2875:128::-;2915:3;2946:1;2942:6;2939:1;2936:13;2933:39;;;2952:18;;:::i;:::-;-1:-1:-1;2988:9:1;;2875:128::o
Swarm Source
ipfs://d1af71383ebae00828484489c4210b7239d3d8e6e9e7ec83de737c6b904838ab
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.