ETH Price: $3,339.58 (-0.11%)

Token

HedgeBank Token (HEB)
 

Overview

Max Total Supply

1,000,000,000 HEB

Holders

127

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
xiaomage.eth
Balance
300.0000000000000003 HEB

Value
$0.00
0x6A5088A974470cFa0CAd87567075f2EfF3491B72
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HedgeBankToken

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-07-20
*/

pragma solidity ^0.4.24;

library SafeMath {
    function add(uint a, uint b) internal pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }
    function sub(uint a, uint b) internal pure returns (uint c) {
        require(b <= a);
        c = a - b;
    }
    function mul(uint a, uint b) internal pure returns (uint c) {
        c = a * b;
        require(a == 0 || c / a == b);
    }
    function div(uint a, uint b) internal pure returns (uint c) {
        require(b > 0);
        c = a / b;
    }
}

contract ERC20Interface {
    function totalSupply() public constant returns (uint);
    function balanceOf(address tokenOwner) public constant returns (uint balance);
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);
    event Transfer(address indexed from, address indexed to, uint tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}

contract ApproveAndCallFallBack {
    function receiveApproval(address from, uint256 tokens, address token, bytes data) public;
}

contract Owned {
    address public owner;
    address public newOwner;

    event OwnershipTransferred(address indexed _from, address indexed _to);

    constructor() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address _newOwner) public onlyOwner {
        newOwner = _newOwner;
    }
    
    function acceptOwnership() public {
        require(msg.sender == newOwner);
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
        newOwner = address(0);
    }
}

contract HedgeBankToken is ERC20Interface, Owned {
    using SafeMath for uint;

    string public symbol;
    string public  name;
    uint8 public decimals;
    uint _totalSupply;
    bool public stopped;

    mapping(address => uint) balances;
    mapping(address => mapping(address => uint)) allowed;

    constructor() public {
        symbol = "HEB";
        name = "HedgeBank Token";
        decimals = 18;
        _totalSupply = 1000000000 * 10**uint(decimals);
        stopped = false;
        balances[owner] = _totalSupply;
        emit Transfer(address(0), owner, _totalSupply);
    }
    
    modifier notStopped {
        require(!stopped);
        _;
    }
    
    function stop() public onlyOwner {
        stopped = true;
    }
    
    function start() public onlyOwner {
        stopped = false;
    }

    function totalSupply() public view returns (uint) {
        return _totalSupply.sub(balances[address(0)]);
    }

    function balanceOf(address tokenOwner) public view returns (uint balance) {
        return balances[tokenOwner];
    }

    function transfer(address to, uint tokens) public notStopped returns (bool success) {
        require(to != address(0));
        balances[msg.sender] = balances[msg.sender].sub(tokens);
        balances[to] = balances[to].add(tokens);
        emit Transfer(msg.sender, to, tokens);
        return true;
    }

    function approve(address spender, uint tokens) public notStopped returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }

    function transferFrom(address from, address to, uint tokens) public notStopped returns (bool success) {
        require(to != address(0));
        balances[from] = balances[from].sub(tokens);
        allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
        balances[to] = balances[to].add(tokens);
        emit Transfer(from, to, tokens);
        return true;
    }

    function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }

    function approveAndCall(address spender, uint tokens, bytes data) public notStopped returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
        return true;
    }

    function () public payable {
        revert();
    }

    function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
        return ERC20Interface(tokenAddress).transfer(owner, tokens);
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"stop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"name":"success","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":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","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":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stopped","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"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":"tokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"start","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"},{"name":"data","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokenAddress","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transferAnyERC20Token","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","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"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenOwner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Approval","type":"event"}]

608060405234801561001057600080fd5b5060008054600160a060020a031916331790556040805180820190915260038082527f4845420000000000000000000000000000000000000000000000000000000000602090920191825261006791600291610137565b5060408051808201909152600f8082527f486564676542616e6b20546f6b656e000000000000000000000000000000000060209092019182526100ac91600391610137565b5060048054601260ff19918216179182905560ff909116600a0a633b9aca000260058190556006805490921690915560008054600160a060020a0390811682526007602090815260408084208590558354815195865290519216937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a36101d2565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061017857805160ff19168380011785556101a5565b828001600101855582156101a5579182015b828111156101a557825182559160200191906001019061018a565b506101b19291506101b5565b5090565b6101cf91905b808211156101b157600081556001016101bb565b90565b610bc6806101e16000396000f3006080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010057806307da68f51461018a578063095ea7b3146101a157806318160ddd146101d957806323b872dd14610200578063313ce5671461022a57806370a082311461025557806375f12b211461027657806379ba50971461028b5780638da5cb5b146102a057806395d89b41146102d1578063a9059cbb146102e6578063be9a65551461030a578063cae9ca511461031f578063d4ee1d9014610388578063dc39d06d1461039d578063dd62ed3e146103c1578063f2fde38b146103e8575b600080fd5b34801561010c57600080fd5b50610115610409565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014f578181015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019657600080fd5b5061019f610497565b005b3480156101ad57600080fd5b506101c5600160a060020a03600435166024356104bd565b604080519115158252519081900360200190f35b3480156101e557600080fd5b506101ee610538565b60408051918252519081900360200190f35b34801561020c57600080fd5b506101c5600160a060020a036004358116906024351660443561057b565b34801561023657600080fd5b5061023f6106ae565b6040805160ff9092168252519081900360200190f35b34801561026157600080fd5b506101ee600160a060020a03600435166106b7565b34801561028257600080fd5b506101c56106d2565b34801561029757600080fd5b5061019f6106db565b3480156102ac57600080fd5b506102b5610763565b60408051600160a060020a039092168252519081900360200190f35b3480156102dd57600080fd5b50610115610772565b3480156102f257600080fd5b506101c5600160a060020a03600435166024356107ca565b34801561031657600080fd5b5061019f6108a2565b34801561032b57600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526101c5948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506108c59650505050505050565b34801561039457600080fd5b506102b5610a3a565b3480156103a957600080fd5b506101c5600160a060020a0360043516602435610a49565b3480156103cd57600080fd5b506101ee600160a060020a0360043581169060243516610b04565b3480156103f457600080fd5b5061019f600160a060020a0360043516610b2f565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561048f5780601f106104645761010080835404028352916020019161048f565b820191906000526020600020905b81548152906001019060200180831161047257829003601f168201915b505050505081565b600054600160a060020a031633146104ae57600080fd5b6006805460ff19166001179055565b60065460009060ff16156104d057600080fd5b336000818152600860209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b600080805260076020527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df546005546105769163ffffffff610b7516565b905090565b60065460009060ff161561058e57600080fd5b600160a060020a03831615156105a357600080fd5b600160a060020a0384166000908152600760205260409020546105cc908363ffffffff610b7516565b600160a060020a0385166000908152600760209081526040808320939093556008815282822033835290522054610609908363ffffffff610b7516565b600160a060020a03808616600090815260086020908152604080832033845282528083209490945591861681526007909152205461064d908363ffffffff610b8a16565b600160a060020a0380851660008181526007602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60045460ff1681565b600160a060020a031660009081526007602052604090205490565b60065460ff1681565b600154600160a060020a031633146106f257600080fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561048f5780601f106104645761010080835404028352916020019161048f565b60065460009060ff16156107dd57600080fd5b600160a060020a03831615156107f257600080fd5b33600090815260076020526040902054610812908363ffffffff610b7516565b3360009081526007602052604080822092909255600160a060020a03851681522054610844908363ffffffff610b8a16565b600160a060020a0384166000818152600760209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600054600160a060020a031633146108b957600080fd5b6006805460ff19169055565b60065460009060ff16156108d857600080fd5b336000818152600860209081526040808320600160a060020a03891680855290835292819020879055805187815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a36040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018690523060448401819052608060648501908152865160848601528651600160a060020a038a1695638f4ffcb195948a94938a939192909160a490910190602085019080838360005b838110156109c95781810151838201526020016109b1565b50505050905090810190601f1680156109f65780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610a1857600080fd5b505af1158015610a2c573d6000803e3d6000fd5b506001979650505050505050565b600154600160a060020a031681565b60008054600160a060020a03163314610a6157600080fd5b60008054604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810186905290519186169263a9059cbb926044808401936020939083900390910190829087803b158015610ad157600080fd5b505af1158015610ae5573d6000803e3d6000fd5b505050506040513d6020811015610afb57600080fd5b50519392505050565b600160a060020a03918216600090815260086020908152604080832093909416825291909152205490565b600054600160a060020a03163314610b4657600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610b8457600080fd5b50900390565b8181018281101561053257600080fd00a165627a7a72305820bd4993540149e6d659a1c44ca3ade1d03c5c014f129aa705ac77f1042bf7c7670029

Deployed Bytecode

0x6080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010057806307da68f51461018a578063095ea7b3146101a157806318160ddd146101d957806323b872dd14610200578063313ce5671461022a57806370a082311461025557806375f12b211461027657806379ba50971461028b5780638da5cb5b146102a057806395d89b41146102d1578063a9059cbb146102e6578063be9a65551461030a578063cae9ca511461031f578063d4ee1d9014610388578063dc39d06d1461039d578063dd62ed3e146103c1578063f2fde38b146103e8575b600080fd5b34801561010c57600080fd5b50610115610409565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014f578181015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019657600080fd5b5061019f610497565b005b3480156101ad57600080fd5b506101c5600160a060020a03600435166024356104bd565b604080519115158252519081900360200190f35b3480156101e557600080fd5b506101ee610538565b60408051918252519081900360200190f35b34801561020c57600080fd5b506101c5600160a060020a036004358116906024351660443561057b565b34801561023657600080fd5b5061023f6106ae565b6040805160ff9092168252519081900360200190f35b34801561026157600080fd5b506101ee600160a060020a03600435166106b7565b34801561028257600080fd5b506101c56106d2565b34801561029757600080fd5b5061019f6106db565b3480156102ac57600080fd5b506102b5610763565b60408051600160a060020a039092168252519081900360200190f35b3480156102dd57600080fd5b50610115610772565b3480156102f257600080fd5b506101c5600160a060020a03600435166024356107ca565b34801561031657600080fd5b5061019f6108a2565b34801561032b57600080fd5b50604080516020600460443581810135601f81018490048402850184019095528484526101c5948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506108c59650505050505050565b34801561039457600080fd5b506102b5610a3a565b3480156103a957600080fd5b506101c5600160a060020a0360043516602435610a49565b3480156103cd57600080fd5b506101ee600160a060020a0360043581169060243516610b04565b3480156103f457600080fd5b5061019f600160a060020a0360043516610b2f565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561048f5780601f106104645761010080835404028352916020019161048f565b820191906000526020600020905b81548152906001019060200180831161047257829003601f168201915b505050505081565b600054600160a060020a031633146104ae57600080fd5b6006805460ff19166001179055565b60065460009060ff16156104d057600080fd5b336000818152600860209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b600080805260076020527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df546005546105769163ffffffff610b7516565b905090565b60065460009060ff161561058e57600080fd5b600160a060020a03831615156105a357600080fd5b600160a060020a0384166000908152600760205260409020546105cc908363ffffffff610b7516565b600160a060020a0385166000908152600760209081526040808320939093556008815282822033835290522054610609908363ffffffff610b7516565b600160a060020a03808616600090815260086020908152604080832033845282528083209490945591861681526007909152205461064d908363ffffffff610b8a16565b600160a060020a0380851660008181526007602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60045460ff1681565b600160a060020a031660009081526007602052604090205490565b60065460ff1681565b600154600160a060020a031633146106f257600080fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561048f5780601f106104645761010080835404028352916020019161048f565b60065460009060ff16156107dd57600080fd5b600160a060020a03831615156107f257600080fd5b33600090815260076020526040902054610812908363ffffffff610b7516565b3360009081526007602052604080822092909255600160a060020a03851681522054610844908363ffffffff610b8a16565b600160a060020a0384166000818152600760209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600054600160a060020a031633146108b957600080fd5b6006805460ff19169055565b60065460009060ff16156108d857600080fd5b336000818152600860209081526040808320600160a060020a03891680855290835292819020879055805187815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a36040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081523360048201818152602483018690523060448401819052608060648501908152865160848601528651600160a060020a038a1695638f4ffcb195948a94938a939192909160a490910190602085019080838360005b838110156109c95781810151838201526020016109b1565b50505050905090810190601f1680156109f65780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015610a1857600080fd5b505af1158015610a2c573d6000803e3d6000fd5b506001979650505050505050565b600154600160a060020a031681565b60008054600160a060020a03163314610a6157600080fd5b60008054604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810186905290519186169263a9059cbb926044808401936020939083900390910190829087803b158015610ad157600080fd5b505af1158015610ae5573d6000803e3d6000fd5b505050506040513d6020811015610afb57600080fd5b50519392505050565b600160a060020a03918216600090815260086020908152604080832093909416825291909152205490565b600054600160a060020a03163314610b4657600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610b8457600080fd5b50900390565b8181018281101561053257600080fd00a165627a7a72305820bd4993540149e6d659a1c44ca3ade1d03c5c014f129aa705ac77f1042bf7c7670029

Swarm Source

bzzr://bd4993540149e6d659a1c44ca3ade1d03c5c014f129aa705ac77f1042bf7c767
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.