Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 10124821 | 1688 days ago | IN | 0.05 ETH | 0.0002268 |
Loading...
Loading
Contract Name:
TheScorpionCoin
Compiler Version
v0.6.0+commit.26b70077
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-05-23 */ pragma solidity ^0.6.0; contract TheScorpionCoin { /// return total amount of tokens function transfer(address _to, uint256 _value) public returns (bool success) { //Default assumes totalSupply can't be over max (2^256 - 1). //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap. //Replace the if with this one instead. //if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not { if (balances[msg.sender] >= _value && _value > 0) { balances[msg.sender] -= _value; balances[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; } else { return false; } } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { //same as above. Replace this line with the following if you want to protect against wrapping uints. //if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) /// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not { if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) { balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; emit Transfer(_from, _to, _value); return true; } else { return false; } } function balanceOf(address _owner) view public returns (uint256 balance) { /// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not { return balances[_owner]; } function approve(address _spender, uint256 _value) public returns (bool success) { /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) view public returns (uint256 remaining) { return allowed[_owner][_spender]; } event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; uint256 public totalSupply; /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences the core functionality. Some wallets/interfaces might not even bother to look at this information. */ string public name; // Token Name uint8 public decimals; // How many decimals to show. To be standard complicant keep it 18 string public symbol; // An identifier: eg SBX, XPR etc.. string public version = 'H1.0'; uint256 public unitsOneEthCanBuy; // How many units of your coin can be bought by 1 ETH? uint256 public totalEthInWei; // WEI is the smallest unit of ETH (the equivalent of cent in USD or satoshi in BTC). We'll store the total ETH raised via our ICO here. address public fundsWallet; // Where should the raised ETH go? // This is a constructor function // which means the following function name has to match the contract name declared above function TSC ()public { balances[msg.sender] = 1000000000000000000000; // Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X * 100000. (CHANGE THIS) totalSupply = 50000; // Update total supply (1000 for example) (CHANGE THIS) name = "TheScorpionCoin"; // Set the name for display purposes (CHANGE THIS) decimals = 18; // Amount of decimals for display purposes (CHANGE THIS) symbol = "TSC"; // Set the symbol for display purposes (CHANGE THIS) unitsOneEthCanBuy = 9; // Set the price of your token for the ICO (CHANGE THIS) fundsWallet = msg.sender; // The owner of the contract gets ETH } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":[],"name":"TSC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","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":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundsWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalEthInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"success","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":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unitsOneEthCanBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040526004608081905263048312e360e41b60a09081526100259160069190610038565b5034801561003257600080fd5b506100d3565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061007957805160ff19168380011785556100a6565b828001600101855582156100a6579182015b828111156100a657825182559160200191906001019061008b565b506100b29291506100b6565b5090565b6100d091905b808211156100b257600081556001016100bc565b90565b6107fe806100e26000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806365f2bc2e1161008c57806395d89b411161006657806395d89b411461027c578063a26b323b14610284578063a9059cbb1461028e578063dd62ed3e146102ba576100ea565b806365f2bc2e1461024657806370a082311461024e578063933ba41314610274576100ea565b80632194f3a2116100c85780632194f3a2146101c657806323b872dd146101ea578063313ce5671461022057806354fd4d501461023e576100ea565b806306fdde03146100ef578063095ea7b31461016c57806318160ddd146101ac575b600080fd5b6100f76102e8565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101986004803603604081101561018257600080fd5b506001600160a01b038135169060200135610376565b604080519115158252519081900360200190f35b6101b46103dd565b60408051918252519081900360200190f35b6101ce6103e3565b604080516001600160a01b039092168252519081900360200190f35b6101986004803603606081101561020057600080fd5b506001600160a01b038135811691602081013590911690604001356103f2565b6102286104dd565b6040805160ff9092168252519081900360200190f35b6100f76104e6565b6101b4610541565b6101b46004803603602081101561026457600080fd5b50356001600160a01b0316610547565b6101b4610562565b6100f7610568565b61028c6105c3565b005b610198600480360360408110156102a457600080fd5b506001600160a01b03813516906020013561066b565b6101b4600480360360408110156102d057600080fd5b506001600160a01b0381358116916020013516610702565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561036e5780601f106103435761010080835404028352916020019161036e565b820191906000526020600020905b81548152906001019060200180831161035157829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60025481565b6009546001600160a01b031681565b6001600160a01b038316600090815260208190526040812054821180159061043d57506001600160a01b03841660009081526001602090815260408083203384529091529020548211155b80156104495750600082115b156104d2576001600160a01b0380841660008181526020818152604080832080548801905593881680835284832080548890039055600182528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104d6565b5060005b9392505050565b60045460ff1681565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561036e5780601f106103435761010080835404028352916020019161036e565b60075481565b6001600160a01b031660009081526020819052604090205490565b60085481565b6005805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561036e5780601f106103435761010080835404028352916020019161036e565b3360009081526020818152604091829020683635c9adc5dea00000905561c3506002558151808301909252600f8083526e2a3432a9b1b7b93834b7b721b7b4b760891b929091019182526106199160039161072d565b506004805460ff191660121790556040805180820190915260038082526254534360e81b60209092019182526106519160059161072d565b506009600781905580546001600160a01b03191633179055565b33600090815260208190526040812054821180159061068a5750600082115b156106fa5733600081815260208181526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016103d7565b5060006103d7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061076e57805160ff191683800117855561079b565b8280016001018555821561079b579182015b8281111561079b578251825591602001919060010190610780565b506107a79291506107ab565b5090565b6107c591905b808211156107a757600081556001016107b1565b9056fea2646970667358221220b037dee93f0e224dda9c2406f52a4a7e8ff765bf00ea95cc90d7df1379a917d464736f6c63430006000033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806365f2bc2e1161008c57806395d89b411161006657806395d89b411461027c578063a26b323b14610284578063a9059cbb1461028e578063dd62ed3e146102ba576100ea565b806365f2bc2e1461024657806370a082311461024e578063933ba41314610274576100ea565b80632194f3a2116100c85780632194f3a2146101c657806323b872dd146101ea578063313ce5671461022057806354fd4d501461023e576100ea565b806306fdde03146100ef578063095ea7b31461016c57806318160ddd146101ac575b600080fd5b6100f76102e8565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101986004803603604081101561018257600080fd5b506001600160a01b038135169060200135610376565b604080519115158252519081900360200190f35b6101b46103dd565b60408051918252519081900360200190f35b6101ce6103e3565b604080516001600160a01b039092168252519081900360200190f35b6101986004803603606081101561020057600080fd5b506001600160a01b038135811691602081013590911690604001356103f2565b6102286104dd565b6040805160ff9092168252519081900360200190f35b6100f76104e6565b6101b4610541565b6101b46004803603602081101561026457600080fd5b50356001600160a01b0316610547565b6101b4610562565b6100f7610568565b61028c6105c3565b005b610198600480360360408110156102a457600080fd5b506001600160a01b03813516906020013561066b565b6101b4600480360360408110156102d057600080fd5b506001600160a01b0381358116916020013516610702565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561036e5780601f106103435761010080835404028352916020019161036e565b820191906000526020600020905b81548152906001019060200180831161035157829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60025481565b6009546001600160a01b031681565b6001600160a01b038316600090815260208190526040812054821180159061043d57506001600160a01b03841660009081526001602090815260408083203384529091529020548211155b80156104495750600082115b156104d2576001600160a01b0380841660008181526020818152604080832080548801905593881680835284832080548890039055600182528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104d6565b5060005b9392505050565b60045460ff1681565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561036e5780601f106103435761010080835404028352916020019161036e565b60075481565b6001600160a01b031660009081526020819052604090205490565b60085481565b6005805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561036e5780601f106103435761010080835404028352916020019161036e565b3360009081526020818152604091829020683635c9adc5dea00000905561c3506002558151808301909252600f8083526e2a3432a9b1b7b93834b7b721b7b4b760891b929091019182526106199160039161072d565b506004805460ff191660121790556040805180820190915260038082526254534360e81b60209092019182526106519160059161072d565b506009600781905580546001600160a01b03191633179055565b33600090815260208190526040812054821180159061068a5750600082115b156106fa5733600081815260208181526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016103d7565b5060006103d7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061076e57805160ff191683800117855561079b565b8280016001018555821561079b579182015b8281111561079b578251825591602001919060010190610780565b506107a79291506107ab565b5090565b6107c591905b808211156107a757600081556001016107b1565b9056fea2646970667358221220b037dee93f0e224dda9c2406f52a4a7e8ff765bf00ea95cc90d7df1379a917d464736f6c63430006000033
Deployed Bytecode Sourcemap
27:5475:0:-:0;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27:5475:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3721:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;3721:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2470:432;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2470:432:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3338:26;;;:::i;:::-;;;;;;;;;;;;;;;;4285;;;:::i;:::-;;;;-1:-1:-1;;;;;4285:26:0;;;;;;;;;;;;;;1133:965;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1133:965:0;;;;;;;;;;;;;;;;;:::i;3778:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3967:30;;;:::i;4005:32::-;;;:::i;2106:356::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2106:356:0;-1:-1:-1;;;;;2106:356:0;;:::i;4103:28::-;;;:::i;3888:20::-;;;:::i;4499:992::-;;;:::i;:::-;;110:1015;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;110:1015:0;;;;;;;;:::i;2910:142::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2910:142:0;;;;;;;;;;:::i;3721:18::-;;;;;;;;;;;;;;;-1:-1:-1;;3721:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2470:432::-;2788:10;2537:12;2780:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2780:29:0;;;;;;;;;;;:38;;;2834;;;;;;;2537:12;;2780:29;;2788:10;;2834:38;;;;;;;;-1:-1:-1;2890:4:0;2470:432;;;;;:::o;3338:26::-;;;;:::o;4285:::-;;;-1:-1:-1;;;;;4285:26:0;;:::o;1133:965::-;-1:-1:-1;;;;;1772:15:0;;1215:12;1772:15;;;;;;;;;;;:25;-1:-1:-1;1772:25:0;;;:65;;-1:-1:-1;;;;;;1801:14:0;;;;;;:7;:14;;;;;;;;1816:10;1801:26;;;;;;;;:36;-1:-1:-1;1801:36:0;1772:65;:79;;;;;1850:1;1841:6;:10;1772:79;1768:323;;;-1:-1:-1;;;;;1868:13:0;;;:8;:13;;;;;;;;;;;:23;;;;;;1906:15;;;;;;;;;:25;;;;;;;-1:-1:-1;1946:14:0;;;;;1961:10;1946:26;;;;;;;;:36;;;;;;;2002:28;;;;;;;1868:13;;1906:15;;2002:28;;;;;;;;;;-1:-1:-1;2052:4:0;2045:11;;1768:323;-1:-1:-1;2083:5:0;1768:323;1133:965;;;;;:::o;3778:21::-;;;;;;:::o;3967:30::-;;;;;;;;;;;;;;;-1:-1:-1;;3967:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4005:32;;;;:::o;2106:356::-;-1:-1:-1;;;;;2438:16:0;2162:15;2438:16;;;;;;;;;;;;2106:356::o;4103:28::-;;;;:::o;3888:20::-;;;;;;;;;;;;;;;-1:-1:-1;;3888:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4499:992;4541:10;4532:8;:20;;;;;;;;;;;;4555:22;4532:45;;4796:5;4782:11;:19;4891:24;;;;;;;;;;;;-1:-1:-1;;;4891:24:0;;;;;;;;;:4;;:24;:::i;:::-;-1:-1:-1;5011:8:0;:13;;-1:-1:-1;;5011:13:0;5022:2;5011:13;;;5138:14;;;;;;;;;;;;;-1:-1:-1;;;5138:14:0;;;;;;;;;:6;;:14;:::i;:::-;-1:-1:-1;5280:1:0;5260:17;:21;;;5386:24;;-1:-1:-1;;;;;;5386:24:0;5400:10;5386:24;;;4499:992::o;110:1015::-;884:10;174:12;875:20;;;;;;;;;;;:30;-1:-1:-1;875:30:0;;;:44;;;918:1;909:6;:10;875:44;871:247;;;945:10;936:8;:20;;;;;;;;;;;:30;;;;;;;-1:-1:-1;;;;;981:13:0;;;;;;;;;:23;;;;;;1024:33;;;;;;;981:13;;945:10;1024:33;;;;;;;;;;;-1:-1:-1;1079:4:0;1072:11;;871:247;-1:-1:-1;1110:5:0;1103:12;;2910:142;-1:-1:-1;;;;;3019:15:0;;;2984:17;3019:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;2910:142::o;27:5475::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27:5475:0;;;-1:-1:-1;27:5475:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://b037dee93f0e224dda9c2406f52a4a7e8ff765bf00ea95cc90d7df1379a917d4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.