Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000 0xTube
Holders
8,484
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Balance
1,000 0xTubeValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
USDTUBE
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-08-21 */ pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract USDTUBE { // Public variables of the token string public name = "0xTube"; string public symbol = "0xTube"; uint8 public decimals = 8; // 18 decimals is the strongly suggested default uint256 public totalSupply; uint256 public USDTUBESupply = 1000000000; uint256 public price ; address public creator; // This creates an array with all balances mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; // This generates a public event on the blockchain that will notify clients event Transfer(address indexed from, address indexed to, uint256 value); event FundTransfer(address backer, uint amount, bool isContribution); /** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */ function USDTUBE() public { totalSupply = USDTUBESupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give USDTUBE Mint the total created tokens creator = msg.sender; } /** * Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0xdf215b2ee853a5f6c4785e3224823622ebfefd1d); // Check if the sender has enough require(balanceOf[_from] >= _value); // Check for overflows require(balanceOf[_to] + _value >= balanceOf[_to]); // Subtract from the sender balanceOf[_from] -= _value; // Add the same to the recipient balanceOf[_to] += _value; Transfer(_from, _to, _value); } /** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */ function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); } /// @notice Buy tokens from contract by sending ether function () payable internal { if (price == 0 ether){ uint ammount = 100000000000; // calculates the amount, made it so you can get many BicycleMinth but to get MANY you have to spend ETH and not WEI uint ammountRaised; ammountRaised += msg.value; //many thanks , couldnt do it without r/me_irl require(balanceOf[creator] >= 500000); // checks if it has enough to sell require(msg.value < 0.5 ether); // so any person who wants to put more then 0.1 ETH has time to think about what they are doing require(balanceOf[msg.sender] == 0); // one users doesn't collect more than once balanceOf[msg.sender] += ammount; // adds the amount to buyer's balance balanceOf[creator] -= ammount; // sends ETH to Transfer(creator, msg.sender, ammount); // execute an event reflecting the change creator.transfer(ammountRaised); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"creator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"USDTUBESupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]
Contract Creation Code
60c0604052600660808190527f307854756265000000000000000000000000000000000000000000000000000060a090815261003e91600091906100e5565b506040805180820190915260068082527f30785475626500000000000000000000000000000000000000000000000000006020909201918252610083916001916100e5565b506002805460ff19166008179055633b9aca006004553480156100a557600080fd5b5060025460045460ff909116600a0a0260038190553360008181526007602052604090209190915560068054600160a060020a0319169091179055610180565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012657805160ff1916838001178555610153565b82800160010185558215610153579182015b82811115610153578251825591602001919060010190610138565b5061015f929150610163565b5090565b61017d91905b8082111561015f5760008155600101610169565b90565b6105d98061018f6000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f81146101c157806306fdde03146101f257806318160ddd1461027c578063313ce567146102a357806370a08231146102ce57806395d89b41146102ef578063a035b1fe14610304578063a9059cbb14610319578063dd62ed3e1461033f578063fd99c01214610366575b600080600554600014156101bd57600654600160a060020a031660009081526007602052604090205464174876e80092503491909101906207a12011156100e957600080fd5b6706f05b59d3b2000034106100fd57600080fd5b336000908152600760205260409020541561011757600080fd5b33600081815260076020908152604080832080548701905560068054600160a060020a039081168552938290208054889003905554815187815291519316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600654604051600160a060020a039091169082156108fc029083906000818181858888f193505050501580156101bb573d6000803e3d6000fd5b505b5050005b3480156101cd57600080fd5b506101d661037b565b60408051600160a060020a039092168252519081900360200190f35b3480156101fe57600080fd5b5061020761038a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610241578181015183820152602001610229565b50505050905090810190601f16801561026e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028857600080fd5b50610291610418565b60408051918252519081900360200190f35b3480156102af57600080fd5b506102b861041e565b6040805160ff9092168252519081900360200190f35b3480156102da57600080fd5b50610291600160a060020a0360043516610427565b3480156102fb57600080fd5b50610207610439565b34801561031057600080fd5b50610291610493565b34801561032557600080fd5b5061033d600160a060020a0360043516602435610499565b005b34801561034b57600080fd5b50610291600160a060020a03600435811690602435166104a8565b34801561037257600080fd5b506102916104c5565b600654600160a060020a031681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104105780601f106103e557610100808354040283529160200191610410565b820191906000526020600020905b8154815290600101906020018083116103f357829003601f168201915b505050505081565b60035481565b60025460ff1681565b60076020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104105780601f106103e557610100808354040283529160200191610410565b60055481565b6104a43383836104cb565b5050565b600860209081526000928352604080842090915290825290205481565b60045481565b73df215b2ee853a5f6c4785e3224823622ebfefd1d600160a060020a03831614156104f557600080fd5b600160a060020a03831660009081526007602052604090205481111561051a57600080fd5b600160a060020a038216600090815260076020526040902054818101101561054157600080fd5b600160a060020a03808416600081815260076020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a723058204acd66abadb44c5108f851ea4f62b9d0286e78c9070ea0a772af881d3ab76e830029
Deployed Bytecode
0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f81146101c157806306fdde03146101f257806318160ddd1461027c578063313ce567146102a357806370a08231146102ce57806395d89b41146102ef578063a035b1fe14610304578063a9059cbb14610319578063dd62ed3e1461033f578063fd99c01214610366575b600080600554600014156101bd57600654600160a060020a031660009081526007602052604090205464174876e80092503491909101906207a12011156100e957600080fd5b6706f05b59d3b2000034106100fd57600080fd5b336000908152600760205260409020541561011757600080fd5b33600081815260076020908152604080832080548701905560068054600160a060020a039081168552938290208054889003905554815187815291519316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3600654604051600160a060020a039091169082156108fc029083906000818181858888f193505050501580156101bb573d6000803e3d6000fd5b505b5050005b3480156101cd57600080fd5b506101d661037b565b60408051600160a060020a039092168252519081900360200190f35b3480156101fe57600080fd5b5061020761038a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610241578181015183820152602001610229565b50505050905090810190601f16801561026e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028857600080fd5b50610291610418565b60408051918252519081900360200190f35b3480156102af57600080fd5b506102b861041e565b6040805160ff9092168252519081900360200190f35b3480156102da57600080fd5b50610291600160a060020a0360043516610427565b3480156102fb57600080fd5b50610207610439565b34801561031057600080fd5b50610291610493565b34801561032557600080fd5b5061033d600160a060020a0360043516602435610499565b005b34801561034b57600080fd5b50610291600160a060020a03600435811690602435166104a8565b34801561037257600080fd5b506102916104c5565b600654600160a060020a031681565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104105780601f106103e557610100808354040283529160200191610410565b820191906000526020600020905b8154815290600101906020018083116103f357829003601f168201915b505050505081565b60035481565b60025460ff1681565b60076020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104105780601f106103e557610100808354040283529160200191610410565b60055481565b6104a43383836104cb565b5050565b600860209081526000928352604080842090915290825290205481565b60045481565b73df215b2ee853a5f6c4785e3224823622ebfefd1d600160a060020a03831614156104f557600080fd5b600160a060020a03831660009081526007602052604090205481111561051a57600080fd5b600160a060020a038216600090815260076020526040902054818101101561054157600080fd5b600160a060020a03808416600081815260076020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a723058204acd66abadb44c5108f851ea4f62b9d0286e78c9070ea0a772af881d3ab76e830029
Swarm Source
bzzr://4acd66abadb44c5108f851ea4f62b9d0286e78c9070ea0a772af881d3ab76e83
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.