Warning! There are reports that this token used a fake team profile on their website. Please exercise caution when interacting with this token.
ERC-20
Marketplace
Overview
Max Total Supply
279,000,000 ERC-20 TOKEN*
Holders
311 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
8.38628985319115764 ERC-20 TOKEN*Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
storeum
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-05-04 */ pragma solidity 0.4.25; // ---------------------------------------------------------------------------------------------- // sto token by storeum Limited. // An ERC20 standard // // author: storeum team // Contact: [email protected] contract ERC20 { uint256 public totalSupply; function balanceOf(address who) public view returns (uint256 _user); function transfer(address to, uint256 value) public returns (bool success); function allowance(address owner, address spender) public view returns (uint256 value); function transferFrom(address from, address to, uint256 value) public returns (bool success); function approve(address spender, uint256 value) public returns (bool success); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } library SafeMath { function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function safeSub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) { uint c = a + b; assert(c>=a); return c; } function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } } contract OnlyOwner { address public owner; address private controller; //log the previous and new controller when event is fired. event SetNewController(address prev_controller, address new_controller); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owner = msg.sender; controller = owner; } /** * @dev Throws if called by any account other than the owner. */ modifier isOwner { require(msg.sender == owner); _; } /** * @dev Throws if called by any account other than the controller. */ modifier isController { require(msg.sender == controller); _; } function replaceController(address new_controller) isController public returns(bool){ require(new_controller != address(0x0)); controller = new_controller; emit SetNewController(msg.sender,controller); return true; } } contract StandardToken is ERC20{ using SafeMath for uint256; mapping(address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; function _transfer(address _from, address _to, uint256 _value) internal returns (bool success){ //prevent sending of tokens from genesis address or to self require(_from != address(0) && _from != _to); require(_to != address(0)); //subtract tokens from the sender on transfer balances[_from] = balances[_from].safeSub(_value); //add tokens to the receiver on reception balances[_to] = balances[_to].safeAdd(_value); return true; } function transfer(address _to, uint256 _value) public returns (bool success) { require(_value <= balances[msg.sender]); _transfer(msg.sender,_to,_value); emit Transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { uint256 _allowance = allowed[_from][msg.sender]; //value must be less than allowed value require(_value <= _allowance); //balance of sender + token value transferred by sender must be greater than balance of sender require(balances[_to] + _value > balances[_to]); //call transfer function _transfer(_from,_to,_value); //subtract the amount allowed to the sender allowed[_from][msg.sender] = _allowance.safeSub(_value); //trigger Transfer event emit Transfer(_from, _to, _value); return true; } function balanceOf(address _owner) public constant returns (uint balance) { return balances[_owner]; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ function approve(address _spender, uint256 _value) public returns (bool) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender,0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 require((_value == 0) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; } } contract storeum is StandardToken, OnlyOwner{ uint256 public constant decimals = 18; string public constant name = "storeum"; string public constant symbol = "STO"; string public constant version = "1.0"; uint256 public constant totalSupply =279000000*10**18; uint256 private approvalCounts =0; uint256 private minRequiredApprovals =2; address public burnedTokensReceiver; constructor() public{ balances[msg.sender] = totalSupply; burnedTokensReceiver = 0x0000000000000000000000000000000000000000; } /** * @dev Function to set approval count variable value. * @param _value uint The value by which approvalCounts variable will be set. */ function setApprovalCounts(uint _value) public isController { approvalCounts = _value; } /** * @dev Function to set minimum require approval variable value. * @param _value uint The value by which minRequiredApprovals variable will be set. * @return true. */ function setMinApprovalCounts(uint _value) public isController returns (bool){ require(_value > 0); minRequiredApprovals = _value; return true; } /** * @dev Function to get approvalCounts variable value. * @return approvalCounts. */ function getApprovalCount() public view isController returns(uint){ return approvalCounts; } /** * @dev Function to get burned Tokens Receiver address. * @return burnedTokensReceiver. */ function getBurnedTokensReceiver() public view isController returns(address){ return burnedTokensReceiver; } function controllerApproval(address _from, uint256 _value) public isOwner returns (bool) { require(minRequiredApprovals <= approvalCounts); require(_value <= balances[_from]); balances[_from] = balances[_from].safeSub(_value); balances[burnedTokensReceiver] = balances[burnedTokensReceiver].safeAdd(_value); emit Transfer(_from,burnedTokensReceiver, _value); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"getApprovalCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"setApprovalCounts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"burnedTokensReceiver","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getBurnedTokensReceiver","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"new_controller","type":"address"}],"name":"replaceController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"setMinApprovalCounts","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"controllerApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"prev_controller","type":"address"},{"indexed":false,"name":"new_controller","type":"address"}],"name":"SetNewController","type":"event"},{"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":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
60806040526000600555600260065534801561001a57600080fd5b5060038054600160a060020a03199081163390811792839055600480548316600160a060020a0394909416939093179092556000918252600160205260409091206ae6c88c4e6156fa770000009055600780549091169055610a2b806100816000396000f3006080604052600436106100fb5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630343d550811461010057806306fdde0314610127578063095ea7b3146101b157806318160ddd146101e957806323b872dd146101fe5780632d0641d414610228578063313ce5671461024257806354fd4d501461025757806355ab96881461026c5780635f0e6fc61461029d578063632fbda4146102b257806370a08231146102d35780638c31886f146102f45780638da5cb5b1461030c57806395d89b4114610321578063a9059cbb14610336578063dc3a83721461035a578063dd62ed3e1461037e575b600080fd5b34801561010c57600080fd5b506101156103a5565b60408051918252519081900360200190f35b34801561013357600080fd5b5061013c6103c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017657818101518382015260200161015e565b50505050905090810190601f1680156101a35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101bd57600080fd5b506101d5600160a060020a03600435166024356103fd565b604080519115158252519081900360200190f35b3480156101f557600080fd5b5061011561049f565b34801561020a57600080fd5b506101d5600160a060020a03600435811690602435166044356104ae565b34801561023457600080fd5b5061024060043561058d565b005b34801561024e57600080fd5b506101156105a9565b34801561026357600080fd5b5061013c6105ae565b34801561027857600080fd5b506102816105e5565b60408051600160a060020a039092168252519081900360200190f35b3480156102a957600080fd5b506102816105f4565b3480156102be57600080fd5b506101d5600160a060020a036004351661061e565b3480156102df57600080fd5b50610115600160a060020a03600435166106bf565b34801561030057600080fd5b506101d56004356106da565b34801561031857600080fd5b5061028161070a565b34801561032d57600080fd5b5061013c610719565b34801561034257600080fd5b506101d5600160a060020a0360043516602435610750565b34801561036657600080fd5b506101d5600160a060020a03600435166024356107c1565b34801561038a57600080fd5b50610115600160a060020a03600435811690602435166108da565b600454600090600160a060020a031633146103bf57600080fd5b5060055490565b60408051808201909152600781527f73746f7265756d00000000000000000000000000000000000000000000000000602082015281565b600081158061042d5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561043857600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b6ae6c88c4e6156fa7700000081565b600160a060020a0383166000908152600260209081526040808320338452909152812054808311156104df57600080fd5b600160a060020a0384166000908152600160205260409020548381011161050557600080fd5b610510858585610905565b50610521818463ffffffff6109d716565b600160a060020a03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b600454600160a060020a031633146105a457600080fd5b600555565b601281565b60408051808201909152600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600754600160a060020a031681565b600454600090600160a060020a0316331461060e57600080fd5b50600754600160a060020a031690565b600454600090600160a060020a0316331461063857600080fd5b600160a060020a038216151561064d57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691909117918290556040805133815292909116602083015280517fd2a4788497665e302d031c6dd3efc595d77c9c7bd8aac410fc847406f2efb79e9281900390910190a1506001919050565b600160a060020a031660009081526001602052604090205490565b600454600090600160a060020a031633146106f457600080fd5b6000821161070157600080fd5b50600655600190565b600354600160a060020a031681565b60408051808201909152600381527f53544f0000000000000000000000000000000000000000000000000000000000602082015281565b3360009081526001602052604081205482111561076c57600080fd5b610777338484610905565b50604080518381529051600160a060020a0385169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b600354600090600160a060020a031633146107db57600080fd5b60055460065411156107ec57600080fd5b600160a060020a03831660009081526001602052604090205482111561081157600080fd5b600160a060020a03831660009081526001602052604090205461083a908363ffffffff6109d716565b600160a060020a038085166000908152600160205260408082209390935560075490911681522054610872908363ffffffff6109e916565b60078054600160a060020a039081166000908152600160209081526040918290209490945591548251868152925190821693918716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b6000600160a060020a03841615801590610931575082600160a060020a031684600160a060020a031614155b151561093c57600080fd5b600160a060020a038316151561095157600080fd5b600160a060020a03841660009081526001602052604090205461097a908363ffffffff6109d716565b600160a060020a0380861660009081526001602052604080822093909355908516815220546109af908363ffffffff6109e916565b600160a060020a03841660009081526001602081905260409091209190915590509392505050565b6000828211156109e357fe5b50900390565b6000828201838110156109f857fe5b93925050505600a165627a7a72305820dad635c59174fea277fd58c38c2c38cec7d1a69100ffaf5ac49cde4d869714c70029
Deployed Bytecode
0x6080604052600436106100fb5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630343d550811461010057806306fdde0314610127578063095ea7b3146101b157806318160ddd146101e957806323b872dd146101fe5780632d0641d414610228578063313ce5671461024257806354fd4d501461025757806355ab96881461026c5780635f0e6fc61461029d578063632fbda4146102b257806370a08231146102d35780638c31886f146102f45780638da5cb5b1461030c57806395d89b4114610321578063a9059cbb14610336578063dc3a83721461035a578063dd62ed3e1461037e575b600080fd5b34801561010c57600080fd5b506101156103a5565b60408051918252519081900360200190f35b34801561013357600080fd5b5061013c6103c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017657818101518382015260200161015e565b50505050905090810190601f1680156101a35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101bd57600080fd5b506101d5600160a060020a03600435166024356103fd565b604080519115158252519081900360200190f35b3480156101f557600080fd5b5061011561049f565b34801561020a57600080fd5b506101d5600160a060020a03600435811690602435166044356104ae565b34801561023457600080fd5b5061024060043561058d565b005b34801561024e57600080fd5b506101156105a9565b34801561026357600080fd5b5061013c6105ae565b34801561027857600080fd5b506102816105e5565b60408051600160a060020a039092168252519081900360200190f35b3480156102a957600080fd5b506102816105f4565b3480156102be57600080fd5b506101d5600160a060020a036004351661061e565b3480156102df57600080fd5b50610115600160a060020a03600435166106bf565b34801561030057600080fd5b506101d56004356106da565b34801561031857600080fd5b5061028161070a565b34801561032d57600080fd5b5061013c610719565b34801561034257600080fd5b506101d5600160a060020a0360043516602435610750565b34801561036657600080fd5b506101d5600160a060020a03600435166024356107c1565b34801561038a57600080fd5b50610115600160a060020a03600435811690602435166108da565b600454600090600160a060020a031633146103bf57600080fd5b5060055490565b60408051808201909152600781527f73746f7265756d00000000000000000000000000000000000000000000000000602082015281565b600081158061042d5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561043857600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b6ae6c88c4e6156fa7700000081565b600160a060020a0383166000908152600260209081526040808320338452909152812054808311156104df57600080fd5b600160a060020a0384166000908152600160205260409020548381011161050557600080fd5b610510858585610905565b50610521818463ffffffff6109d716565b600160a060020a03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b600454600160a060020a031633146105a457600080fd5b600555565b601281565b60408051808201909152600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600754600160a060020a031681565b600454600090600160a060020a0316331461060e57600080fd5b50600754600160a060020a031690565b600454600090600160a060020a0316331461063857600080fd5b600160a060020a038216151561064d57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691909117918290556040805133815292909116602083015280517fd2a4788497665e302d031c6dd3efc595d77c9c7bd8aac410fc847406f2efb79e9281900390910190a1506001919050565b600160a060020a031660009081526001602052604090205490565b600454600090600160a060020a031633146106f457600080fd5b6000821161070157600080fd5b50600655600190565b600354600160a060020a031681565b60408051808201909152600381527f53544f0000000000000000000000000000000000000000000000000000000000602082015281565b3360009081526001602052604081205482111561076c57600080fd5b610777338484610905565b50604080518381529051600160a060020a0385169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b600354600090600160a060020a031633146107db57600080fd5b60055460065411156107ec57600080fd5b600160a060020a03831660009081526001602052604090205482111561081157600080fd5b600160a060020a03831660009081526001602052604090205461083a908363ffffffff6109d716565b600160a060020a038085166000908152600160205260408082209390935560075490911681522054610872908363ffffffff6109e916565b60078054600160a060020a039081166000908152600160209081526040918290209490945591548251868152925190821693918716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b6000600160a060020a03841615801590610931575082600160a060020a031684600160a060020a031614155b151561093c57600080fd5b600160a060020a038316151561095157600080fd5b600160a060020a03841660009081526001602052604090205461097a908363ffffffff6109d716565b600160a060020a0380861660009081526001602052604080822093909355908516815220546109af908363ffffffff6109e916565b600160a060020a03841660009081526001602081905260409091209190915590509392505050565b6000828211156109e357fe5b50900390565b6000828201838110156109f857fe5b93925050505600a165627a7a72305820dad635c59174fea277fd58c38c2c38cec7d1a69100ffaf5ac49cde4d869714c70029
Swarm Source
bzzr://dad635c59174fea277fd58c38c2c38cec7d1a69100ffaf5ac49cde4d869714c7
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.