Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000,001,000,000,000 FOUR
Holders
5
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
516,448.112992247037990995 FOURValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
FourCoin
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-05-08 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; contract Ownable { address internal _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() { _transferOwnership(msg.sender); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == msg.sender, "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a * different contract through the {_delegate} function. * * The success and return data of the delegated call will be returned back to the caller of the proxy. */ contract FourCoin is Ownable { address public implementation; /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _delegate(address implementation_) internal virtual { assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratch pad at memory position 0. calldatacopy(0, 0, calldatasize()) // Call the implementation. // out and outsize are 0 because we don't know the size yet. let result := delegatecall( gas(), implementation_, 0, calldatasize(), 0, 0 ) // Copy the returned data. returndatacopy(0, 0, returndatasize()) switch result // delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } function setImplementation(address __implementation) public onlyOwner { implementation = __implementation; } /** * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function * and {_fallback} should delegate. */ function _implementation() internal view virtual returns (address) { return implementation; } /** * @dev Delegates the current call to the address returned by `_implementation()`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _fallback() internal virtual { _beforeFallback(); _delegate(_implementation()); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other * function in the contract matches the call data. */ fallback() external payable virtual { _fallback(); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data * is empty. */ receive() external payable virtual { _fallback(); } /** * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback` * call, or as part of the Solidity `fallback` or `receive` functions. * * If overridden should call `super._beforeFallback()`. */ function _beforeFallback() internal virtual {} function version() public pure returns (string memory) { return "9999.99.999999.9999999999999999999999"; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"__implementation","type":"address"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b506100203361002560201b60201c565b6100e9565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610724806100f86000396000f3fe6080604052600436106100595760003560e01c806354fd4d50146100725780635c60da1b1461009d578063715018a6146100c85780638da5cb5b146100df578063d784d4261461010a578063f2fde38b1461013357610068565b366100685761006661015c565b005b61007061015c565b005b34801561007e57600080fd5b50610087610176565b60405161009491906104ef565b60405180910390f35b3480156100a957600080fd5b506100b2610196565b6040516100bf9190610552565b60405180910390f35b3480156100d457600080fd5b506100dd6101bc565b005b3480156100eb57600080fd5b506100f46101d0565b6040516101019190610552565b60405180910390f35b34801561011657600080fd5b50610131600480360381019061012c919061059e565b6101f9565b005b34801561013f57600080fd5b5061015a6004803603810190610155919061059e565b610245565b005b6101646102c9565b61017461016f6102cb565b6102f5565b565b60606040518060600160405280602581526020016106ca60259139905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6101c461031b565b6101ce6000610392565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61020161031b565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61024d61031b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156102bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b49061063d565b60405180910390fd5b6102c681610392565b50565b565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3660008037600080366000845af43d6000803e8060008114610316573d6000f35b3d6000fd5b3373ffffffffffffffffffffffffffffffffffffffff1661033a6101d0565b73ffffffffffffffffffffffffffffffffffffffff1614610390576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610387906106a9565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610490578082015181840152602081019050610475565b8381111561049f576000848401525b50505050565b6000601f19601f8301169050919050565b60006104c182610456565b6104cb8185610461565b93506104db818560208601610472565b6104e4816104a5565b840191505092915050565b6000602082019050818103600083015261050981846104b6565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061053c82610511565b9050919050565b61054c81610531565b82525050565b60006020820190506105676000830184610543565b92915050565b600080fd5b61057b81610531565b811461058657600080fd5b50565b60008135905061059881610572565b92915050565b6000602082840312156105b4576105b361056d565b5b60006105c284828501610589565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610627602683610461565b9150610632826105cb565b604082019050919050565b600060208201905081810360008301526106568161061a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610693602083610461565b915061069e8261065d565b602082019050919050565b600060208201905081810360008301526106c281610686565b905091905056fe393939392e39392e3939393939392e39393939393939393939393939393939393939393939a2646970667358221220c3f521f5d7459a709f7f88d0ff51d64a5c9712f5bbc9713972071eba7158dce764736f6c63430008090033
Deployed Bytecode
0x6080604052600436106100595760003560e01c806354fd4d50146100725780635c60da1b1461009d578063715018a6146100c85780638da5cb5b146100df578063d784d4261461010a578063f2fde38b1461013357610068565b366100685761006661015c565b005b61007061015c565b005b34801561007e57600080fd5b50610087610176565b60405161009491906104ef565b60405180910390f35b3480156100a957600080fd5b506100b2610196565b6040516100bf9190610552565b60405180910390f35b3480156100d457600080fd5b506100dd6101bc565b005b3480156100eb57600080fd5b506100f46101d0565b6040516101019190610552565b60405180910390f35b34801561011657600080fd5b50610131600480360381019061012c919061059e565b6101f9565b005b34801561013f57600080fd5b5061015a6004803603810190610155919061059e565b610245565b005b6101646102c9565b61017461016f6102cb565b6102f5565b565b60606040518060600160405280602581526020016106ca60259139905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6101c461031b565b6101ce6000610392565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61020161031b565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61024d61031b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156102bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b49061063d565b60405180910390fd5b6102c681610392565b50565b565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3660008037600080366000845af43d6000803e8060008114610316573d6000f35b3d6000fd5b3373ffffffffffffffffffffffffffffffffffffffff1661033a6101d0565b73ffffffffffffffffffffffffffffffffffffffff1614610390576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610387906106a9565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610490578082015181840152602081019050610475565b8381111561049f576000848401525b50505050565b6000601f19601f8301169050919050565b60006104c182610456565b6104cb8185610461565b93506104db818560208601610472565b6104e4816104a5565b840191505092915050565b6000602082019050818103600083015261050981846104b6565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061053c82610511565b9050919050565b61054c81610531565b82525050565b60006020820190506105676000830184610543565b92915050565b600080fd5b61057b81610531565b811461058657600080fd5b50565b60008135905061059881610572565b92915050565b6000602082840312156105b4576105b361056d565b5b60006105c284828501610589565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610627602683610461565b9150610632826105cb565b604082019050919050565b600060208201905081810360008301526106568161061a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610693602083610461565b915061069e8261065d565b602082019050919050565b600060208201905081810360008301526106c281610686565b905091905056fe393939392e39392e3939393939392e39393939393939393939393939393939393939393939a2646970667358221220c3f521f5d7459a709f7f88d0ff51d64a5c9712f5bbc9713972071eba7158dce764736f6c63430008090033
Deployed Bytecode Sourcemap
2646:3053:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5213:11;:9;:11::i;:::-;2646:3053;;4982:11;:9;:11::i;:::-;2646:3053;5576:120;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2682:29;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1181:103;;;;;;;;;;;;;:::i;:::-;;535:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3965:122;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1439:238;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;4619:113;4668:17;:15;:17::i;:::-;4696:28;4706:17;:15;:17::i;:::-;4696:9;:28::i;:::-;4619:113::o;5576:120::-;5616:13;5642:46;;;;;;;;;;;;;;;;;;;5576:120;:::o;2682:29::-;;;;;;;;;;;;;:::o;1181:103::-;421:13;:11;:13::i;:::-;1246:30:::1;1273:1;1246:18;:30::i;:::-;1181:103::o:0;535:87::-;581:7;608:6;;;;;;;;;;;601:13;;535:87;:::o;3965:122::-;421:13;:11;:13::i;:::-;4063:16:::1;4046:14;;:33;;;;;;;;;;;;;;;;;;3965:122:::0;:::o;1439:238::-;421:13;:11;:13::i;:::-;1562:1:::1;1542:22;;:8;:22;;;;1520:110;;;;;;;;;;;;:::i;:::-;;;;;;;;;1641:28;1660:8;1641:18;:28::i;:::-;1439:238:::0;:::o;5522:46::-;:::o;4277:107::-;4335:7;4362:14;;;;;;;;;;;4355:21;;4277:107;:::o;2920:1037::-;3264:14;3261:1;3258;3245:34;3586:1;3566;3533:14;3513:1;3479:15;3455:5;3424:178;3679:16;3676:1;3673;3658:38;3719:6;3793:1;3788:68;;;;3907:16;3904:1;3897:27;3788:68;3824:16;3821:1;3814:27;700:130;775:10;764:21;;:7;:5;:7::i;:::-;:21;;;756:66;;;;;;;;;;;;:::i;:::-;;;;;;;;;700:130::o;1837:191::-;1911:16;1930:6;;;;;;;;;;;1911:25;;1956:8;1947:6;;:17;;;;;;;;;;;;;;;;;;2011:8;1980:40;;2001:8;1980:40;;;;;;;;;;;;1900:128;1837:191;:::o;7:99:1:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:169::-;196:11;230:6;225:3;218:19;270:4;265:3;261:14;246:29;;112:169;;;;:::o;287:307::-;355:1;365:113;379:6;376:1;373:13;365:113;;;464:1;459:3;455:11;449:18;445:1;440:3;436:11;429:39;401:2;398:1;394:10;389:15;;365:113;;;496:6;493:1;490:13;487:101;;;576:1;567:6;562:3;558:16;551:27;487:101;336:258;287:307;;;:::o;600:102::-;641:6;692:2;688:7;683:2;676:5;672:14;668:28;658:38;;600:102;;;:::o;708:364::-;796:3;824:39;857:5;824:39;:::i;:::-;879:71;943:6;938:3;879:71;:::i;:::-;872:78;;959:52;1004:6;999:3;992:4;985:5;981:16;959:52;:::i;:::-;1036:29;1058:6;1036:29;:::i;:::-;1031:3;1027:39;1020:46;;800:272;708:364;;;;:::o;1078:313::-;1191:4;1229:2;1218:9;1214:18;1206:26;;1278:9;1272:4;1268:20;1264:1;1253:9;1249:17;1242:47;1306:78;1379:4;1370:6;1306:78;:::i;:::-;1298:86;;1078:313;;;;:::o;1397:126::-;1434:7;1474:42;1467:5;1463:54;1452:65;;1397:126;;;:::o;1529:96::-;1566:7;1595:24;1613:5;1595:24;:::i;:::-;1584:35;;1529:96;;;:::o;1631:118::-;1718:24;1736:5;1718:24;:::i;:::-;1713:3;1706:37;1631:118;;:::o;1755:222::-;1848:4;1886:2;1875:9;1871:18;1863:26;;1899:71;1967:1;1956:9;1952:17;1943:6;1899:71;:::i;:::-;1755:222;;;;:::o;2064:117::-;2173:1;2170;2163:12;2310:122;2383:24;2401:5;2383:24;:::i;:::-;2376:5;2373:35;2363:63;;2422:1;2419;2412:12;2363:63;2310:122;:::o;2438:139::-;2484:5;2522:6;2509:20;2500:29;;2538:33;2565:5;2538:33;:::i;:::-;2438:139;;;;:::o;2583:329::-;2642:6;2691:2;2679:9;2670:7;2666:23;2662:32;2659:119;;;2697:79;;:::i;:::-;2659:119;2817:1;2842:53;2887:7;2878:6;2867:9;2863:22;2842:53;:::i;:::-;2832:63;;2788:117;2583:329;;;;:::o;2918:225::-;3058:34;3054:1;3046:6;3042:14;3035:58;3127:8;3122:2;3114:6;3110:15;3103:33;2918:225;:::o;3149:366::-;3291:3;3312:67;3376:2;3371:3;3312:67;:::i;:::-;3305:74;;3388:93;3477:3;3388:93;:::i;:::-;3506:2;3501:3;3497:12;3490:19;;3149:366;;;:::o;3521:419::-;3687:4;3725:2;3714:9;3710:18;3702:26;;3774:9;3768:4;3764:20;3760:1;3749:9;3745:17;3738:47;3802:131;3928:4;3802:131;:::i;:::-;3794:139;;3521:419;;;:::o;3946:182::-;4086:34;4082:1;4074:6;4070:14;4063:58;3946:182;:::o;4134:366::-;4276:3;4297:67;4361:2;4356:3;4297:67;:::i;:::-;4290:74;;4373:93;4462:3;4373:93;:::i;:::-;4491:2;4486:3;4482:12;4475:19;;4134:366;;;:::o;4506:419::-;4672:4;4710:2;4699:9;4695:18;4687:26;;4759:9;4753:4;4749:20;4745:1;4734:9;4730:17;4723:47;4787:131;4913:4;4787:131;:::i;:::-;4779:139;;4506:419;;;:::o
Swarm Source
ipfs://c3f521f5d7459a709f7f88d0ff51d64a5c9712f5bbc9713972071eba7158dce7
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.