Spaghetti.money: PASTA Token contract has migrated to a new address.
ERC-20
Old Contract
Overview
Max Total Supply
14,244,454.390044481454584919 PASTA
Holders
733 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
683.793474232260152099 PASTAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SpaghettiToken
Compiler Version
v0.5.12+commit.7709ece9
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-08-17 */ pragma solidity ^0.5.0; contract DSMath { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x, "ds-math-add-overflow"); } function sub(uint x, uint y) internal pure returns (uint z) { require((z = x - y) <= x, "ds-math-sub-underflow"); } function mul(uint x, uint y) internal pure returns (uint z) { require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow"); } } // token.sol -- ERC20 implementation with minting and burning // Copyright (C) 2015, 2016, 2017 DappHub, LLC // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. contract SpaghettiToken is DSMath { uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; bytes32 public symbol = "PASTA"; uint256 public decimals = 18; bytes32 public name = "Spaghetti"; constructor(address chef) public { // hard limit 15,000,000 PASTA totalSupply = 15000000000000000000000000; balanceOf[chef] = 15000000000000000000000000; } event Approval(address indexed src, address indexed guy, uint wad); event Transfer(address indexed src, address indexed dst, uint wad); event Burn(uint wad); function approve(address guy) external returns (bool) { return approve(guy, uint(-1)); } function approve(address guy, uint wad) public returns (bool) { allowance[msg.sender][guy] = wad; emit Approval(msg.sender, guy, wad); return true; } function transfer(address dst, uint wad) external returns (bool) { return transferFrom(msg.sender, dst, wad); } function transferFrom(address src, address dst, uint wad) public returns (bool) { if (src != msg.sender && allowance[src][msg.sender] != uint(-1)) { require(allowance[src][msg.sender] >= wad, "ds-token-insufficient-approval"); allowance[src][msg.sender] = sub(allowance[src][msg.sender], wad); } require(balanceOf[src] >= wad, "ds-token-insufficient-balance"); balanceOf[src] = sub(balanceOf[src], wad); uint one = wad / 100; uint ninetynine = sub(wad, one); balanceOf[dst] = add(balanceOf[dst], ninetynine); burn(one); emit Transfer(src, dst, wad); return true; } function burn(uint wad) internal { totalSupply = sub(totalSupply, wad); emit Burn(wad); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"chef","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"guy","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040527f504153544100000000000000000000000000000000000000000000000000000060035560126004557f537061676865747469000000000000000000000000000000000000000000000060055534801561005d57600080fd5b506040516106fe3803806106fe8339818101604052602081101561008057600080fd5b50516a0c685fa11e01ec6f00000060008181556001600160a01b0390921682526001602052604090912055610644806100ba6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a082311461014357806395d89b4114610169578063a9059cbb14610171578063daea85c51461019d578063dd62ed3e146101c35761009e565b806306fdde03146100a3578063095ea7b3146100bd57806318160ddd146100fd57806323b872dd14610105578063313ce5671461013b575b600080fd5b6100ab6101f1565b60408051918252519081900360200190f35b6100e9600480360360408110156100d357600080fd5b506001600160a01b0381351690602001356101f7565b604080519115158252519081900360200190f35b6100ab61025e565b6100e96004803603606081101561011b57600080fd5b506001600160a01b03813581169160208101359091169060400135610264565b6100ab6104ce565b6100ab6004803603602081101561015957600080fd5b50356001600160a01b03166104d4565b6100ab6104e6565b6100e96004803603604081101561018757600080fd5b506001600160a01b0381351690602001356104ec565b6100e9600480360360208110156101b357600080fd5b50356001600160a01b0316610500565b6100ab600480360360408110156101d957600080fd5b506001600160a01b038135811691602001351661050e565b60055481565b3360008181526002602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b60006001600160a01b03841633148015906102a457506001600160a01b038416600090815260026020908152604080832033845290915290205460001914155b15610374576001600160a01b0384166000908152600260209081526040808320338452909152902054821115610321576040805162461bcd60e51b815260206004820152601e60248201527f64732d746f6b656e2d696e73756666696369656e742d617070726f76616c0000604482015290519081900360640190fd5b6001600160a01b038416600090815260026020908152604080832033845290915290205461034f908361052b565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b6001600160a01b0384166000908152600160205260409020548211156103e1576040805162461bcd60e51b815260206004820152601d60248201527f64732d746f6b656e2d696e73756666696369656e742d62616c616e6365000000604482015290519081900360640190fd5b6001600160a01b038416600090815260016020526040902054610404908361052b565b6001600160a01b038516600090815260016020526040812091909155606483049061042f848361052b565b6001600160a01b038616600090815260016020526040902054909150610455908261057b565b6001600160a01b038616600090815260016020526040902055610477826105ca565b846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040518082815260200191505060405180910390a350600195945050505050565b60045481565b60016020526000908152604090205481565b60035481565b60006104f9338484610264565b9392505050565b6000610258826000196101f7565b600260209081526000928352604080842090915290825290205481565b80820382811115610258576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b80820182811015610258576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6105d66000548261052b565b6000556040805182815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9181900360200190a15056fea265627a7a723158203d22b77d4167ec95a558941b48a8dc56c734f2f5a4fc9f7285cd0f41088b347a64736f6c634300050c0032000000000000000000000000873fc389f5bb0c8e927aad1b4cb7b3fd2b5a48b1
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a082311461014357806395d89b4114610169578063a9059cbb14610171578063daea85c51461019d578063dd62ed3e146101c35761009e565b806306fdde03146100a3578063095ea7b3146100bd57806318160ddd146100fd57806323b872dd14610105578063313ce5671461013b575b600080fd5b6100ab6101f1565b60408051918252519081900360200190f35b6100e9600480360360408110156100d357600080fd5b506001600160a01b0381351690602001356101f7565b604080519115158252519081900360200190f35b6100ab61025e565b6100e96004803603606081101561011b57600080fd5b506001600160a01b03813581169160208101359091169060400135610264565b6100ab6104ce565b6100ab6004803603602081101561015957600080fd5b50356001600160a01b03166104d4565b6100ab6104e6565b6100e96004803603604081101561018757600080fd5b506001600160a01b0381351690602001356104ec565b6100e9600480360360208110156101b357600080fd5b50356001600160a01b0316610500565b6100ab600480360360408110156101d957600080fd5b506001600160a01b038135811691602001351661050e565b60055481565b3360008181526002602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b60006001600160a01b03841633148015906102a457506001600160a01b038416600090815260026020908152604080832033845290915290205460001914155b15610374576001600160a01b0384166000908152600260209081526040808320338452909152902054821115610321576040805162461bcd60e51b815260206004820152601e60248201527f64732d746f6b656e2d696e73756666696369656e742d617070726f76616c0000604482015290519081900360640190fd5b6001600160a01b038416600090815260026020908152604080832033845290915290205461034f908361052b565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b6001600160a01b0384166000908152600160205260409020548211156103e1576040805162461bcd60e51b815260206004820152601d60248201527f64732d746f6b656e2d696e73756666696369656e742d62616c616e6365000000604482015290519081900360640190fd5b6001600160a01b038416600090815260016020526040902054610404908361052b565b6001600160a01b038516600090815260016020526040812091909155606483049061042f848361052b565b6001600160a01b038616600090815260016020526040902054909150610455908261057b565b6001600160a01b038616600090815260016020526040902055610477826105ca565b846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040518082815260200191505060405180910390a350600195945050505050565b60045481565b60016020526000908152604090205481565b60035481565b60006104f9338484610264565b9392505050565b6000610258826000196101f7565b600260209081526000928352604080842090915290825290205481565b80820382811115610258576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b80820182811015610258576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6105d66000548261052b565b6000556040805182815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9181900360200190a15056fea265627a7a723158203d22b77d4167ec95a558941b48a8dc56c734f2f5a4fc9f7285cd0f41088b347a64736f6c634300050c0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000873fc389f5bb0c8e927aad1b4cb7b3fd2b5a48b1
-----Decoded View---------------
Arg [0] : chef (address): 0x873Fc389f5bB0c8E927aaD1B4Cb7B3Fd2b5A48b1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000873fc389f5bb0c8e927aad1b4cb7b3fd2b5a48b1
Deployed Bytecode Sourcemap
1240:2131:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1240:2131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1664:76;;;:::i;:::-;;;;;;;;;;;;;;;;2229:185;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2229:185:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1281:69;;;:::i;2555:691::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2555:691:0;;;;;;;;;;;;;;;;;:::i;1586:71::-;;;:::i;1357:67::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1357:67:0;-1:-1:-1;;;;;1357:67:0;;:::i;1505:74::-;;;:::i;2422:125::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2422:125:0;;;;;;;;:::i;2119:102::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2119:102:0;-1:-1:-1;;;;;2119:102:0;;:::i;1431:67::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1431:67:0;;;;;;;;;;:::i;1664:76::-;;;;:::o;2229:185::-;2312:10;2285:4;2302:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;2302:26:0;;;;;;;;;;;:32;;;2352:30;;;;;;;2285:4;;2302:26;;2312:10;;2352:30;;;;;;;;-1:-1:-1;2402:4:0;2229:185;;;;;:::o;1281:69::-;;;;:::o;2555:691::-;2629:4;-1:-1:-1;;;;;2650:17:0;;2657:10;2650:17;;;;:59;;-1:-1:-1;;;;;;2671:14:0;;;;;;:9;:14;;;;;;;;2686:10;2671:26;;;;;;;;-1:-1:-1;;2671:38:0;;2650:59;2646:248;;;-1:-1:-1;;;;;2734:14:0;;;;;;:9;:14;;;;;;;;2749:10;2734:26;;;;;;;;:33;-1:-1:-1;2734:33:0;2726:76;;;;;-1:-1:-1;;;2726:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2850:14:0;;;;;;:9;:14;;;;;;;;2865:10;2850:26;;;;;;;;2846:36;;2878:3;2846;:36::i;:::-;-1:-1:-1;;;;;2817:14:0;;;;;;:9;:14;;;;;;;;2832:10;2817:26;;;;;;;:65;2646:248;-1:-1:-1;;;;;2914:14:0;;;;;;:9;:14;;;;;;:21;-1:-1:-1;2914:21:0;2906:63;;;;;-1:-1:-1;;;2906:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3001:14:0;;;;;;:9;:14;;;;;;2997:24;;3017:3;2997;:24::i;:::-;-1:-1:-1;;;;;2980:14:0;;;;;;:9;:14;;;;;:41;;;;3049:3;3043:9;;;3081:13;3043:3;:9;3081:3;:13::i;:::-;-1:-1:-1;;;;;3126:14:0;;;;;;:9;:14;;;;;;3063:31;;-1:-1:-1;3122:31:0;;3063;3122:3;:31::i;:::-;-1:-1:-1;;;;;3105:14:0;;;;;;:9;:14;;;;;:48;3164:9;3169:3;3164:4;:9::i;:::-;3205:3;-1:-1:-1;;;;;3191:23:0;3200:3;-1:-1:-1;;;;;3191:23:0;;3210:3;3191:23;;;;;;;;;;;;;;;;;;-1:-1:-1;3234:4:0;;2555:691;-1:-1:-1;;;;;2555:691:0:o;1586:71::-;;;;:::o;1357:67::-;;;;;;;;;;;;;:::o;1505:74::-;;;;:::o;2422:125::-;2481:4;2505:34;2518:10;2530:3;2535;2505:12;:34::i;:::-;2498:41;2422:125;-1:-1:-1;;;2422:125:0:o;2119:102::-;2167:4;2191:22;2199:3;-1:-1:-1;;2191:7:0;:22::i;1431:67::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;184:129::-;268:5;;;263:16;;;;255:50;;;;;-1:-1:-1;;;255:50:0;;;;;;;;;;;;-1:-1:-1;;;255:50:0;;;;;;;;;;;;;;50:128;134:5;;;129:16;;;;121:49;;;;;-1:-1:-1;;;121:49:0;;;;;;;;;;;;-1:-1:-1;;;121:49:0;;;;;;;;;;;;;;3254:112;3312:21;3316:11;;3329:3;3312;:21::i;:::-;3298:11;:35;3349:9;;;;;;;;;;;;;;;;;3254:112;:::o
Swarm Source
bzzr://3d22b77d4167ec95a558941b48a8dc56c734f2f5a4fc9f7285cd0f41088b347a
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.