ERC-20
Trading
Overview
Max Total Supply
1,000,000,000 HYB
Holders
5,728 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2,991.988792271416936065 HYBValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HybridBlock
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-05-23 */ pragma solidity ^0.4.18; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 { uint256 public totalSupply; string public name; string public symbol; uint8 public decimals; function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(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; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract HybridBlock is ERC20 { using SafeMath for uint256; // The owner of this token address public owner; // The balance in HybridBlock token that every address has mapping (address => uint256) balances; // Keeps track of allowances for particular address mapping (address => mapping (address => uint256)) public allowed; /** * The constructor for the HybridBlock token */ function HybridBlock() public { owner = 0x35118ba64fD141F43958cF9EB493F13aca976e6a; name = "Hybrid Block"; symbol = "HYB"; decimals = 18; totalSupply = 1e9 * 10 ** uint256(decimals); // Initially allocate all minted tokens to the owner balances[owner] = totalSupply; } /** * @dev Retrieves the balance of a specified address * @param _owner address The address to query the balance of. * @return A uint256 representing the amount owned by the _owner */ function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } /** * @dev Transfers tokens to a specific address * @param _to address The address to transfer tokens to * @param _value unit256 The amount to be transferred */ function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // Subtract first balances[msg.sender] = balances[msg.sender].sub(_value); // Now add tokens balances[_to] = balances[_to].add(_value); // Notify that a transfer has occurred Transfer(msg.sender, _to, _value); return true; } /** * @dev Transfer on behalf of another address * @param _from address The address to send tokens from * @param _to address The address to send tokens to * @param _value uint256 The amount of tokens to be transferred */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); // Decrease both the _from amount and the allowed transfer amount balances[_from] = balances[_from].sub(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); // Give _to the tokens balances[_to] = balances[_to].add(_value); // Notify that a transfer has occurred Transfer(_from, _to, _value); return true; } /** * @dev Approve sent address to spend the specified amount of tokens on * behalf of msg.sender * * See https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * for any potential security concerns * * @param _spender address The address that will spend funds * @param _value uint256 The number of tokens they are allowed to spend */ function approve(address _spender, uint256 _value) public returns (bool) { require(allowed[msg.sender][_spender] == 0); allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } /** * @dev Returns the amount a spender is allowed to spend for a particular * address * @param _owner address The address which owns the funds * @param _spender address The address which will spend the funds. * @return uint256 The number of tokens still available for the spender */ function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; } /** * @dev Increases the number of tokens a spender is allowed to spend for * `msg.sender` * @param _spender address The address of the spender * @param _addedValue uint256 The amount to increase the spenders approval by */ function increaseApproval(address _spender, uint256 _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } /** * @dev Decreases the number of tokens a spender is allowed to spend for * `msg.sender` * @param _spender address The address of the spender * @param _subtractedValue uint256 The amount to decrease the spenders approval by */ function decreaseApproval(address _spender, uint256 _subtractedValue) public returns (bool) { uint _value = allowed[msg.sender][_spender]; if (_subtractedValue > _value) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = _value.sub(_subtractedValue); } Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","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":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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","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":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
6060604052341561000f57600080fd5b6003805461010060a860020a0319167435118ba64fd141f43958cf9eb493f13aca976e6a0017905560408051908101604052600c81527f48796272696420426c6f636b00000000000000000000000000000000000000006020820152600190805161007e92916020019061010b565b5060408051908101604052600381527f4859420000000000000000000000000000000000000000000000000000000000602082015260029080516100c692916020019061010b565b5060038054601260ff19909116179081905560ff8116600a0a633b9aca00026000818155610100909204600160a060020a0316825260046020526040909120556101a6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014c57805160ff1916838001178555610179565b82800160010185558215610179579182015b8281111561017957825182559160200191906001019061015e565b50610185929150610189565b5090565b6101a391905b80821115610185576000815560010161018f565b90565b6109a9806101b56000396000f3006060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018957806323b872dd146101ae578063313ce567146101d65780635c658165146101ff578063661884631461022457806370a08231146102465780638da5cb5b1461026557806395d89b4114610294578063a9059cbb146102a7578063d73dd623146102c9578063dd62ed3e146102eb575b600080fd5b34156100d457600080fd5b6100dc610310565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610175600160a060020a03600435166024356103ae565b604051901515815260200160405180910390f35b341561019457600080fd5b61019c610449565b60405190815260200160405180910390f35b34156101b957600080fd5b610175600160a060020a036004358116906024351660443561044f565b34156101e157600080fd5b6101e96105d1565b60405160ff909116815260200160405180910390f35b341561020a57600080fd5b61019c600160a060020a03600435811690602435166105da565b341561022f57600080fd5b610175600160a060020a03600435166024356105f7565b341561025157600080fd5b61019c600160a060020a03600435166106f1565b341561027057600080fd5b61027861070c565b604051600160a060020a03909116815260200160405180910390f35b341561029f57600080fd5b6100dc610720565b34156102b257600080fd5b610175600160a060020a036004351660243561078b565b34156102d457600080fd5b610175600160a060020a0360043516602435610886565b34156102f657600080fd5b61019c600160a060020a036004358116906024351661092a565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a65780601f1061037b576101008083540402835291602001916103a6565b820191906000526020600020905b81548152906001019060200180831161038957829003601f168201915b505050505081565b600160a060020a033381166000908152600560209081526040808320938616835292905290812054156103e057600080fd5b600160a060020a03338116600081815260056020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b6000600160a060020a038316151561046657600080fd5b600160a060020a03841660009081526004602052604090205482111561048b57600080fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220548211156104be57600080fd5b600160a060020a0384166000908152600460205260409020546104e7908363ffffffff61095516565b600160a060020a038086166000908152600460209081526040808320949094556005815283822033909316825291909152205461052a908363ffffffff61095516565b600160a060020a0380861660009081526005602090815260408083203385168452825280832094909455918616815260049091522054610570908363ffffffff61096716565b600160a060020a03808516600081815260046020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60035460ff1681565b600560209081526000928352604080842090915290825290205481565b600160a060020a0333811660009081526005602090815260408083209386168352929052908120548083111561065457600160a060020a03338116600090815260056020908152604080832093881683529290529081205561068b565b610664818463ffffffff61095516565b600160a060020a033381166000908152600560209081526040808320938916835292905220555b600160a060020a0333811660008181526005602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526004602052604090205490565b6003546101009004600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a65780601f1061037b576101008083540402835291602001916103a6565b6000600160a060020a03831615156107a257600080fd5b600160a060020a0333166000908152600460205260409020548211156107c757600080fd5b600160a060020a0333166000908152600460205260409020546107f0908363ffffffff61095516565b600160a060020a033381166000908152600460205260408082209390935590851681522054610825908363ffffffff61096716565b600160a060020a0380851660008181526004602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a0333811660009081526005602090815260408083209386168352929052908120546108be908363ffffffff61096716565b600160a060020a0333811660008181526005602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b60008282111561096157fe5b50900390565b60008282018381101561097657fe5b93925050505600a165627a7a72305820642d60360acc440246621fb30dcff80d27dc81376cdee0115c8cde3717ddbb690029
Deployed Bytecode
0x6060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018957806323b872dd146101ae578063313ce567146101d65780635c658165146101ff578063661884631461022457806370a08231146102465780638da5cb5b1461026557806395d89b4114610294578063a9059cbb146102a7578063d73dd623146102c9578063dd62ed3e146102eb575b600080fd5b34156100d457600080fd5b6100dc610310565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610175600160a060020a03600435166024356103ae565b604051901515815260200160405180910390f35b341561019457600080fd5b61019c610449565b60405190815260200160405180910390f35b34156101b957600080fd5b610175600160a060020a036004358116906024351660443561044f565b34156101e157600080fd5b6101e96105d1565b60405160ff909116815260200160405180910390f35b341561020a57600080fd5b61019c600160a060020a03600435811690602435166105da565b341561022f57600080fd5b610175600160a060020a03600435166024356105f7565b341561025157600080fd5b61019c600160a060020a03600435166106f1565b341561027057600080fd5b61027861070c565b604051600160a060020a03909116815260200160405180910390f35b341561029f57600080fd5b6100dc610720565b34156102b257600080fd5b610175600160a060020a036004351660243561078b565b34156102d457600080fd5b610175600160a060020a0360043516602435610886565b34156102f657600080fd5b61019c600160a060020a036004358116906024351661092a565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a65780601f1061037b576101008083540402835291602001916103a6565b820191906000526020600020905b81548152906001019060200180831161038957829003601f168201915b505050505081565b600160a060020a033381166000908152600560209081526040808320938616835292905290812054156103e057600080fd5b600160a060020a03338116600081815260056020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b6000600160a060020a038316151561046657600080fd5b600160a060020a03841660009081526004602052604090205482111561048b57600080fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220548211156104be57600080fd5b600160a060020a0384166000908152600460205260409020546104e7908363ffffffff61095516565b600160a060020a038086166000908152600460209081526040808320949094556005815283822033909316825291909152205461052a908363ffffffff61095516565b600160a060020a0380861660009081526005602090815260408083203385168452825280832094909455918616815260049091522054610570908363ffffffff61096716565b600160a060020a03808516600081815260046020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60035460ff1681565b600560209081526000928352604080842090915290825290205481565b600160a060020a0333811660009081526005602090815260408083209386168352929052908120548083111561065457600160a060020a03338116600090815260056020908152604080832093881683529290529081205561068b565b610664818463ffffffff61095516565b600160a060020a033381166000908152600560209081526040808320938916835292905220555b600160a060020a0333811660008181526005602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526004602052604090205490565b6003546101009004600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a65780601f1061037b576101008083540402835291602001916103a6565b6000600160a060020a03831615156107a257600080fd5b600160a060020a0333166000908152600460205260409020548211156107c757600080fd5b600160a060020a0333166000908152600460205260409020546107f0908363ffffffff61095516565b600160a060020a033381166000908152600460205260408082209390935590851681522054610825908363ffffffff61096716565b600160a060020a0380851660008181526004602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a0333811660009081526005602090815260408083209386168352929052908120546108be908363ffffffff61096716565b600160a060020a0333811660008181526005602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b60008282111561096157fe5b50900390565b60008282018381101561097657fe5b93925050505600a165627a7a72305820642d60360acc440246621fb30dcff80d27dc81376cdee0115c8cde3717ddbb690029
Swarm Source
bzzr://642d60360acc440246621fb30dcff80d27dc81376cdee0115c8cde3717ddbb69
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.