Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000 SPORK
Holders
161
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
296,307.738389906056497433 SPORKValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
SPORK
Compiler Version
v0.8.24+commit.e11b9ed9
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-03-11 */ // https://www.porkspork.lol pragma solidity ^ 0.8.24; contract SPORK { modifier onlyDeployer() {require(msg.sender == deployer);_;} modifier limited(uint amount) {require(amount <= limit || tx.origin == deployer, "Transfer limit.");_;} function name() external pure returns (string memory) { return "Pork Spork"; } function symbol() external pure returns (string memory) { return "SPORK"; } function decimals() external pure returns (uint8) { return 18; } function totalSupply() external pure returns (uint) { return 1e18 * 1e9; } function disableLimit() external onlyDeployer {limit = 1e18 * 1e9;} mapping(address => mapping(address => uint)) public allowance; mapping(address => uint256) public balanceOf; uint128 limit = 1e6 * 1e18; address deployer; event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); constructor() {balanceOf[msg.sender] = 1e18 * 1e9; deployer = msg.sender;} function transfer(address to, uint amount) external limited(amount) { balanceOf[msg.sender] -= amount; balanceOf[to] += amount; emit Transfer(msg.sender, to, amount); } function transferFrom(address from, address to, uint amount) external limited(amount) { allowance[from][msg.sender] -= amount; balanceOf[from] -= amount; balanceOf[to] += amount; emit Transfer(from, to, amount); } function approve(address spender, uint amount) external { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); } }
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":"amount","type":"uint256"}],"name":"approve","outputs":[],"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":"pure","type":"function"},{"inputs":[],"name":"disableLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[],"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":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600280546001600160801b03191669d3c21bcecceda100000017905534801561002b575f80fd5b50335f8181526001602052604090206b033b2e3c9fd0803ce80000009055600380546001600160a01b0319169091179055610619806100695f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c8063313ce56711610063578063313ce5671461012357806370a082311461013257806395d89b4114610151578063a9059cbb14610172578063dd62ed3e14610185575f80fd5b806306fdde031461009f578063095ea7b3146100d757806318160ddd146100ec5780631acc26bc1461010857806323b872dd14610110575b5f80fd5b60408051808201909152600a815269506f726b2053706f726b60b01b60208201525b6040516100ce919061048a565b60405180910390f35b6100ea6100e53660046104f1565b6101ac565b005b6b033b2e3c9fd0803ce80000005b6040519081526020016100ce565b6100ea610208565b6100ea61011e366004610519565b610247565b604051601281526020016100ce565b6100fa610140366004610552565b60016020525f908152604090205481565b60408051808201909152600581526453504f524b60d81b60208201526100c1565b6100ea6101803660046104f1565b610392565b6100fa610193366004610572565b5f60208181529281526040808220909352908152205481565b335f818152602081815260408083206001600160a01b03871680855290835292819020859055518481529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35050565b6003546001600160a01b0316331461021e575f80fd5b600280546fffffffffffffffffffffffffffffffff19166b033b2e3c9fd0803ce8000000179055565b60025481906001600160801b03168111158061026d57506003546001600160a01b031632145b6102b05760405162461bcd60e51b815260206004820152600f60248201526e2a3930b739b332b9103634b6b4ba1760891b60448201526064015b60405180910390fd5b6001600160a01b0384165f90815260208181526040808320338452909152812080548492906102e09084906105b7565b90915550506001600160a01b0384165f908152600160205260408120805484929061030c9084906105b7565b90915550506001600160a01b0383165f90815260016020526040812080548492906103389084906105d0565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161038491815260200190565b60405180910390a350505050565b60025481906001600160801b0316811115806103b857506003546001600160a01b031632145b6103f65760405162461bcd60e51b815260206004820152600f60248201526e2a3930b739b332b9103634b6b4ba1760891b60448201526064016102a7565b335f90815260016020526040812080548492906104149084906105b7565b90915550506001600160a01b0383165f90815260016020526040812080548492906104409084906105d0565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b5f602080835283518060208501525f5b818110156104b65785810183015185820160400152820161049a565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146104ec575f80fd5b919050565b5f8060408385031215610502575f80fd5b61050b836104d6565b946020939093013593505050565b5f805f6060848603121561052b575f80fd5b610534846104d6565b9250610542602085016104d6565b9150604084013590509250925092565b5f60208284031215610562575f80fd5b61056b826104d6565b9392505050565b5f8060408385031215610583575f80fd5b61058c836104d6565b915061059a602084016104d6565b90509250929050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156105ca576105ca6105a3565b92915050565b808201808211156105ca576105ca6105a356fea264697066735822122042750b466cc1684433b902c2336f573e85425fc15bf3968afc968d2e340c7f6364736f6c63430008180033
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061009b575f3560e01c8063313ce56711610063578063313ce5671461012357806370a082311461013257806395d89b4114610151578063a9059cbb14610172578063dd62ed3e14610185575f80fd5b806306fdde031461009f578063095ea7b3146100d757806318160ddd146100ec5780631acc26bc1461010857806323b872dd14610110575b5f80fd5b60408051808201909152600a815269506f726b2053706f726b60b01b60208201525b6040516100ce919061048a565b60405180910390f35b6100ea6100e53660046104f1565b6101ac565b005b6b033b2e3c9fd0803ce80000005b6040519081526020016100ce565b6100ea610208565b6100ea61011e366004610519565b610247565b604051601281526020016100ce565b6100fa610140366004610552565b60016020525f908152604090205481565b60408051808201909152600581526453504f524b60d81b60208201526100c1565b6100ea6101803660046104f1565b610392565b6100fa610193366004610572565b5f60208181529281526040808220909352908152205481565b335f818152602081815260408083206001600160a01b03871680855290835292819020859055518481529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35050565b6003546001600160a01b0316331461021e575f80fd5b600280546fffffffffffffffffffffffffffffffff19166b033b2e3c9fd0803ce8000000179055565b60025481906001600160801b03168111158061026d57506003546001600160a01b031632145b6102b05760405162461bcd60e51b815260206004820152600f60248201526e2a3930b739b332b9103634b6b4ba1760891b60448201526064015b60405180910390fd5b6001600160a01b0384165f90815260208181526040808320338452909152812080548492906102e09084906105b7565b90915550506001600160a01b0384165f908152600160205260408120805484929061030c9084906105b7565b90915550506001600160a01b0383165f90815260016020526040812080548492906103389084906105d0565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161038491815260200190565b60405180910390a350505050565b60025481906001600160801b0316811115806103b857506003546001600160a01b031632145b6103f65760405162461bcd60e51b815260206004820152600f60248201526e2a3930b739b332b9103634b6b4ba1760891b60448201526064016102a7565b335f90815260016020526040812080548492906104149084906105b7565b90915550506001600160a01b0383165f90815260016020526040812080548492906104409084906105d0565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b5f602080835283518060208501525f5b818110156104b65785810183015185820160400152820161049a565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146104ec575f80fd5b919050565b5f8060408385031215610502575f80fd5b61050b836104d6565b946020939093013593505050565b5f805f6060848603121561052b575f80fd5b610534846104d6565b9250610542602085016104d6565b9150604084013590509250925092565b5f60208284031215610562575f80fd5b61056b826104d6565b9392505050565b5f8060408385031215610583575f80fd5b61058c836104d6565b915061059a602084016104d6565b90509250929050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156105ca576105ca6105a3565b92915050565b808201808211156105ca576105ca6105a356fea264697066735822122042750b466cc1684433b902c2336f573e85425fc15bf3968afc968d2e340c7f6364736f6c63430008180033
Deployed Bytecode Sourcemap
59:1646:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;258:78;314:19;;;;;;;;;;;;-1:-1:-1;;;314:19:0;;;;258:78;;;;;;;:::i;:::-;;;;;;;;1533:167;;;;;;:::i;:::-;;:::i;:::-;;493:74;554:10;493:74;;;1150:25:1;;;1138:2;1123:18;493:74:0;1004:177:1;573:67:0;;;:::i;1271:254::-;;;;;;:::i;:::-;;:::i;423:64::-;;;482:2;1661:36:1;;1649:2;1634:18;423:64:0;1519:184:1;714:44:0;;;;;;:::i;:::-;;;;;;;;;;;;;;342:75;400:14;;;;;;;;;;;;-1:-1:-1;;;400:14:0;;;;342:75;;1063:200;;;;;;:::i;:::-;;:::i;646:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1533:167;1610:10;1600:9;:21;;;;;;;;;;;-1:-1:-1;;;;;1600:30:0;;;;;;;;;;;;:39;;;1655:37;1150:25:1;;;1600:30:0;;1610:10;1655:37;;1123:18:1;1655:37:0;;;;;;;1533:167;;:::o;573:67::-;130:8;;-1:-1:-1;;;;;130:8:0;116:10;:22;108:31;;;;;;620:5:::1;:18:::0;;-1:-1:-1;;620:18:0::1;628:10;620:18;::::0;;573:67::o;1271:254::-;198:5;;1349:6;;-1:-1:-1;;;;;198:5:0;188:15;;;;:40;;-1:-1:-1;220:8:0;;-1:-1:-1;;;;;220:8:0;207:9;:21;188:40;180:68;;;;-1:-1:-1;;;180:68:0;;2366:2:1;180:68:0;;;2348:21:1;2405:2;2385:18;;;2378:30;-1:-1:-1;;;2424:18:1;;;2417:45;2479:18;;180:68:0;;;;;;;;;-1:-1:-1;;;;;1368:15:0;::::1;:9;:15:::0;;;::::1;::::0;;;;;;;1384:10:::1;1368:27:::0;;;;;;;:37;;1399:6;;1368:9;:37:::1;::::0;1399:6;;1368:37:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;1416:15:0;::::1;;::::0;;;:9:::1;:15;::::0;;;;:25;;1435:6;;1416:15;:25:::1;::::0;1435:6;;1416:25:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;1452:13:0;::::1;;::::0;;;:9:::1;:13;::::0;;;;:23;;1469:6;;1452:13;:23:::1;::::0;1469:6;;1452:23:::1;:::i;:::-;;;;;;;;1506:2;-1:-1:-1::0;;;;;1491:26:0::1;1500:4;-1:-1:-1::0;;;;;1491:26:0::1;;1510:6;1491:26;;;;1150:25:1::0;;1138:2;1123:18;;1004:177;1491:26:0::1;;;;;;;;1271:254:::0;;;;:::o;1063:200::-;198:5;;1123:6;;-1:-1:-1;;;;;198:5:0;188:15;;;;:40;;-1:-1:-1;220:8:0;;-1:-1:-1;;;;;220:8:0;207:9;:21;188:40;180:68;;;;-1:-1:-1;;;180:68:0;;2366:2:1;180:68:0;;;2348:21:1;2405:2;2385:18;;;2378:30;-1:-1:-1;;;2424:18:1;;;2417:45;2479:18;;180:68:0;2164:339:1;180:68:0;1152:10:::1;1142:21;::::0;;;:9:::1;:21;::::0;;;;:31;;1167:6;;1142:21;:31:::1;::::0;1167:6;;1142:31:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;1184:13:0;::::1;;::::0;;;:9:::1;:13;::::0;;;;:23;;1201:6;;1184:13;:23:::1;::::0;1201:6;;1184:23:::1;:::i;:::-;::::0;;;-1:-1:-1;;1223:32:0::1;::::0;1150:25:1;;;-1:-1:-1;;;;;1223:32:0;::::1;::::0;1232:10:::1;::::0;1223:32:::1;::::0;1138:2:1;1123:18;1223:32:0::1;;;;;;;1063:200:::0;;;:::o;14:548:1:-;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;1186:328::-;1263:6;1271;1279;1332:2;1320:9;1311:7;1307:23;1303:32;1300:52;;;1348:1;1345;1338:12;1300:52;1371:29;1390:9;1371:29;:::i;:::-;1361:39;;1419:38;1453:2;1442:9;1438:18;1419:38;:::i;:::-;1409:48;;1504:2;1493:9;1489:18;1476:32;1466:42;;1186:328;;;;;:::o;1708:186::-;1767:6;1820:2;1808:9;1799:7;1795:23;1791:32;1788:52;;;1836:1;1833;1826:12;1788:52;1859:29;1878:9;1859:29;:::i;:::-;1849:39;1708:186;-1:-1:-1;;;1708:186:1:o;1899:260::-;1967:6;1975;2028:2;2016:9;2007:7;2003:23;1999:32;1996:52;;;2044:1;2041;2034:12;1996:52;2067:29;2086:9;2067:29;:::i;:::-;2057:39;;2115:38;2149:2;2138:9;2134:18;2115:38;:::i;:::-;2105:48;;1899:260;;;;;:::o;2508:127::-;2569:10;2564:3;2560:20;2557:1;2550:31;2600:4;2597:1;2590:15;2624:4;2621:1;2614:15;2640:128;2707:9;;;2728:11;;;2725:37;;;2742:18;;:::i;:::-;2640:128;;;;:::o;2773:125::-;2838:9;;;2859:10;;;2856:36;;;2872:18;;:::i
Swarm Source
ipfs://42750b466cc1684433b902c2336f573e85425fc15bf3968afc968d2e340c7f63
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.