ETH Price: $3,366.76 (-0.02%)
Gas: 6.27 Gwei

Token

Leber Quest (LBQ)
 

Overview

Max Total Supply

10,000 LBQ

Holders

74

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
17 LBQ

Value
$0.00
0x10e51c7f522b71ee4c1a0e118bf594e0c87d2baf
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:
LBQ

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.16;

/**
 * Math operations with safety checks
 */
contract SafeMath {
    function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a * b;
        assert(a == 0 || c / a == b);
        return c;
    }

    function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b > 0);
        uint256 c = a / b;
        assert(a == b * 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) {
        uint256 c = a + b;
        assert(c>=a && c>=b);
        return c;
    }
}

contract LBQ is SafeMath {
    string public name;
    string public symbol;
    uint8 public decimals = 18;
    uint256 public totalSupply;
    address public owner;

    /* This creates an array with all balances */
    mapping (address => uint256) public balanceOf;
    mapping (address => uint256) public freezeOf;
    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);

    /* This notifies clients about the amount burnt */
    event Burn(address indexed from, uint256 value);

    /* This notifies clients about the amount frozen */
    event Freeze(address indexed from, uint256 value);

    /* This notifies clients about the amount unfrozen */
    event Unfreeze(address indexed from, uint256 value);

    /* Initializes contract with initial supply tokens to the creator of the contract */
    function LBQ(
        uint256 initialSupply,
        string tokenName,
        string tokenSymbol
    ) public {
        totalSupply = initialSupply * 10 ** uint256(decimals);                        // Update total supply
        balanceOf[msg.sender] = totalSupply;              // Give the creator all initial tokens
        name = tokenName;                                   // Set the name for display purposes
        symbol = tokenSymbol;                               // Set the symbol for display purposes
        owner = msg.sender;
    }

    /* Send coins */
    function transfer(address _to, uint256 _value) public {
        require(_to != 0x0);
        require(_value > 0);
        require(balanceOf[msg.sender] >= _value);
        require(balanceOf[_to] + _value > balanceOf[_to]);
        balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value);                     // Subtract from the sender
        balanceOf[_to] = SafeMath.safeAdd(balanceOf[_to], _value);                            // Add the same to the recipient
        Transfer(msg.sender, _to, _value);                   // Notify anyone listening that this transfer took place
    }

    /* Allow another contract to spend some tokens in your behalf */
    function approve(address _spender, uint256 _value) public
    returns (bool success) {
        require(_value > 0);
        allowance[msg.sender][_spender] = _value;
        return true;
    }


    /* A contract attempts to get the coins */
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_to != 0x0);
        require(_value > 0);
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value > balanceOf[_to]);
        require(_value <= allowance[_from][msg.sender]);
        balanceOf[_from] = SafeMath.safeSub(balanceOf[_from], _value);                           // Subtract from the sender
        balanceOf[_to] = SafeMath.safeAdd(balanceOf[_to], _value);                             // Add the same to the recipient
        allowance[_from][msg.sender] = SafeMath.safeSub(allowance[_from][msg.sender], _value);
        Transfer(_from, _to, _value);
        return true;
    }

    function burn(uint256 _value) public returns (bool success) {
        require(balanceOf[msg.sender] >= _value);
        require(_value > 0);
        balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value);                      // Subtract from the sender
        totalSupply = SafeMath.safeSub(totalSupply, _value);                                // Updates totalSupply
        Burn(msg.sender, _value);
        return true;
    }

    function freeze(uint256 _value) public returns (bool success) {
        require(balanceOf[msg.sender] >= _value);
        require(_value > 0);
        balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value);                      // Subtract from the sender
        freezeOf[msg.sender] = SafeMath.safeAdd(freezeOf[msg.sender], _value);                                // Updates totalSupply
        Freeze(msg.sender, _value);
        return true;
    }

    function unfreeze(uint256 _value) public returns (bool success) {
        require(freezeOf[msg.sender] >= _value);
        require(_value > 0);
        freezeOf[msg.sender] = SafeMath.safeSub(freezeOf[msg.sender], _value);                      // Subtract from the sender
        balanceOf[msg.sender] = SafeMath.safeAdd(balanceOf[msg.sender], _value);
        Unfreeze(msg.sender, _value);
        return true;
    }

    // transfer balance to owner
    function withdrawEther(uint256 amount) public {
        require(msg.sender == owner);
        owner.transfer(amount);
    }

    // can accept ether
    function() public payable {
    }
}

Contract Security Audit

Contract ABI

[{"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":"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":"_value","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":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"unfreeze","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"freezeOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"freeze","outputs":[{"name":"success","type":"bool"}],"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"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"}],"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":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Freeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Unfreeze","type":"event"}]

60606040526002805460ff19166012179055341561001c57600080fd5b604051610c34380380610c34833981016040528080519190602001805182019190602001805160025460ff16600a0a85026003819055600160a060020a03331660009081526005602052604081209190915592019190508280516100849291602001906100bd565b5060018180516100989291602001906100bd565b505060048054600160a060020a03191633600160a060020a0316179055506101589050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fe57805160ff191683800117855561012b565b8280016001018555821561012b579182015b8281111561012b578251825591602001919060010190610110565b5061013792915061013b565b5090565b61015591905b808211156101375760008155600101610141565b90565b610acd806101676000396000f3006060604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100dc578063095ea7b31461016657806318160ddd1461019c57806323b872dd146101c1578063313ce567146101e95780633bed33ce1461021257806342966c68146102285780636623fc461461023e57806370a08231146102545780638da5cb5b1461027357806395d89b41146102a2578063a9059cbb146102b5578063cd4217c1146102d7578063d7a78db8146102f6578063dd62ed3e1461030c575b005b34156100e757600080fd5b6100ef610331565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012b578082015183820152602001610113565b50505050905090810190601f1680156101585780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561017157600080fd5b610188600160a060020a03600435166024356103cf565b604051901515815260200160405180910390f35b34156101a757600080fd5b6101af61040e565b60405190815260200160405180910390f35b34156101cc57600080fd5b610188600160a060020a0360043581169060243516604435610414565b34156101f457600080fd5b6101fc6105b8565b60405160ff909116815260200160405180910390f35b341561021d57600080fd5b6100da6004356105c1565b341561023357600080fd5b610188600435610612565b341561024957600080fd5b6101886004356106d6565b341561025f57600080fd5b6101af600160a060020a03600435166107b5565b341561027e57600080fd5b6102866107c7565b604051600160a060020a03909116815260200160405180910390f35b34156102ad57600080fd5b6100ef6107d6565b34156102c057600080fd5b6100da600160a060020a0360043516602435610841565b34156102e257600080fd5b6101af600160a060020a036004351661095d565b341561030157600080fd5b61018860043561096f565b341561031757600080fd5b6101af600160a060020a0360043581169060243516610a4e565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b505050505081565b60008082116103dd57600080fd5b50600160a060020a033381166000908152600760209081526040808320938616835292905220819055600192915050565b60035481565b6000600160a060020a038316151561042b57600080fd5b6000821161043857600080fd5b600160a060020a0384166000908152600560205260409020548290101561045e57600080fd5b600160a060020a0383166000908152600560205260409020548281011161048457600080fd5b600160a060020a03808516600090815260076020908152604080832033909416835292905220548211156104b757600080fd5b600160a060020a0384166000908152600560205260409020546104da9083610a6b565b600160a060020a0380861660009081526005602052604080822093909355908516815220546105099083610a7d565b600160a060020a0380851660009081526005602090815260408083209490945587831682526007815283822033909316825291909152205461054b9083610a6b565b600160a060020a03808616600081815260076020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60025460ff1681565b60045433600160a060020a039081169116146105dc57600080fd5b600454600160a060020a031681156108fc0282604051600060405180830381858888f19350505050151561060f57600080fd5b50565b600160a060020a0333166000908152600560205260408120548290101561063857600080fd5b6000821161064557600080fd5b600160a060020a0333166000908152600560205260409020546106689083610a6b565b600160a060020a03331660009081526005602052604090205560035461068e9083610a6b565b600355600160a060020a0333167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58360405190815260200160405180910390a2506001919050565b600160a060020a033316600090815260066020526040812054829010156106fc57600080fd5b6000821161070957600080fd5b600160a060020a03331660009081526006602052604090205461072c9083610a6b565b600160a060020a03331660009081526006602090815260408083209390935560059052205461075b9083610a7d565b600160a060020a0333166000818152600560205260409081902092909255907f2cfce4af01bcb9d6cf6c84ee1b7c491100b8695368264146a94d71e10a63083f9084905190815260200160405180910390a2506001919050565b60056020526000908152604090205481565b600454600160a060020a031681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103c75780601f1061039c576101008083540402835291602001916103c7565b600160a060020a038216151561085657600080fd5b6000811161086357600080fd5b600160a060020a0333166000908152600560205260409020548190101561088957600080fd5b600160a060020a038216600090815260056020526040902054818101116108af57600080fd5b600160a060020a0333166000908152600560205260409020546108d29082610a6b565b600160a060020a0333811660009081526005602052604080822093909355908416815220546109019082610a7d565b600160a060020a0380841660008181526005602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a35050565b60066020526000908152604090205481565b600160a060020a0333166000908152600560205260408120548290101561099557600080fd5b600082116109a257600080fd5b600160a060020a0333166000908152600560205260409020546109c59083610a6b565b600160a060020a0333166000908152600560209081526040808320939093556006905220546109f49083610a7d565b600160a060020a0333166000818152600660205260409081902092909255907ff97a274face0b5517365ad396b1fdba6f68bd3135ef603e44272adba3af5a1e09084905190815260200160405180910390a2506001919050565b600760209081526000928352604080842090915290825290205481565b600082821115610a7757fe5b50900390565b6000828201838110801590610a925750828110155b1515610a9a57fe5b93925050505600a165627a7a723058201b6fea77676c6b5a5df98b382089b180ef8d0b876a1f44a9ba7683d033e7017c00290000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000b4c6562657220517565737400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c42510000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6060604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100dc578063095ea7b31461016657806318160ddd1461019c57806323b872dd146101c1578063313ce567146101e95780633bed33ce1461021257806342966c68146102285780636623fc461461023e57806370a08231146102545780638da5cb5b1461027357806395d89b41146102a2578063a9059cbb146102b5578063cd4217c1146102d7578063d7a78db8146102f6578063dd62ed3e1461030c575b005b34156100e757600080fd5b6100ef610331565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561012b578082015183820152602001610113565b50505050905090810190601f1680156101585780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561017157600080fd5b610188600160a060020a03600435166024356103cf565b604051901515815260200160405180910390f35b34156101a757600080fd5b6101af61040e565b60405190815260200160405180910390f35b34156101cc57600080fd5b610188600160a060020a0360043581169060243516604435610414565b34156101f457600080fd5b6101fc6105b8565b60405160ff909116815260200160405180910390f35b341561021d57600080fd5b6100da6004356105c1565b341561023357600080fd5b610188600435610612565b341561024957600080fd5b6101886004356106d6565b341561025f57600080fd5b6101af600160a060020a03600435166107b5565b341561027e57600080fd5b6102866107c7565b604051600160a060020a03909116815260200160405180910390f35b34156102ad57600080fd5b6100ef6107d6565b34156102c057600080fd5b6100da600160a060020a0360043516602435610841565b34156102e257600080fd5b6101af600160a060020a036004351661095d565b341561030157600080fd5b61018860043561096f565b341561031757600080fd5b6101af600160a060020a0360043581169060243516610a4e565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b505050505081565b60008082116103dd57600080fd5b50600160a060020a033381166000908152600760209081526040808320938616835292905220819055600192915050565b60035481565b6000600160a060020a038316151561042b57600080fd5b6000821161043857600080fd5b600160a060020a0384166000908152600560205260409020548290101561045e57600080fd5b600160a060020a0383166000908152600560205260409020548281011161048457600080fd5b600160a060020a03808516600090815260076020908152604080832033909416835292905220548211156104b757600080fd5b600160a060020a0384166000908152600560205260409020546104da9083610a6b565b600160a060020a0380861660009081526005602052604080822093909355908516815220546105099083610a7d565b600160a060020a0380851660009081526005602090815260408083209490945587831682526007815283822033909316825291909152205461054b9083610a6b565b600160a060020a03808616600081815260076020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60025460ff1681565b60045433600160a060020a039081169116146105dc57600080fd5b600454600160a060020a031681156108fc0282604051600060405180830381858888f19350505050151561060f57600080fd5b50565b600160a060020a0333166000908152600560205260408120548290101561063857600080fd5b6000821161064557600080fd5b600160a060020a0333166000908152600560205260409020546106689083610a6b565b600160a060020a03331660009081526005602052604090205560035461068e9083610a6b565b600355600160a060020a0333167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58360405190815260200160405180910390a2506001919050565b600160a060020a033316600090815260066020526040812054829010156106fc57600080fd5b6000821161070957600080fd5b600160a060020a03331660009081526006602052604090205461072c9083610a6b565b600160a060020a03331660009081526006602090815260408083209390935560059052205461075b9083610a7d565b600160a060020a0333166000818152600560205260409081902092909255907f2cfce4af01bcb9d6cf6c84ee1b7c491100b8695368264146a94d71e10a63083f9084905190815260200160405180910390a2506001919050565b60056020526000908152604090205481565b600454600160a060020a031681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103c75780601f1061039c576101008083540402835291602001916103c7565b600160a060020a038216151561085657600080fd5b6000811161086357600080fd5b600160a060020a0333166000908152600560205260409020548190101561088957600080fd5b600160a060020a038216600090815260056020526040902054818101116108af57600080fd5b600160a060020a0333166000908152600560205260409020546108d29082610a6b565b600160a060020a0333811660009081526005602052604080822093909355908416815220546109019082610a7d565b600160a060020a0380841660008181526005602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a35050565b60066020526000908152604090205481565b600160a060020a0333166000908152600560205260408120548290101561099557600080fd5b600082116109a257600080fd5b600160a060020a0333166000908152600560205260409020546109c59083610a6b565b600160a060020a0333166000908152600560209081526040808320939093556006905220546109f49083610a7d565b600160a060020a0333166000818152600660205260409081902092909255907ff97a274face0b5517365ad396b1fdba6f68bd3135ef603e44272adba3af5a1e09084905190815260200160405180910390a2506001919050565b600760209081526000928352604080842090915290825290205481565b600082821115610a7757fe5b50900390565b6000828201838110801590610a925750828110155b1515610a9a57fe5b93925050505600a165627a7a723058201b6fea77676c6b5a5df98b382089b180ef8d0b876a1f44a9ba7683d033e7017c0029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000b4c6562657220517565737400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c42510000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 10000
Arg [1] : tokenName (string): Leber Quest
Arg [2] : tokenSymbol (string): LBQ

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [4] : 4c65626572205175657374000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 4c42510000000000000000000000000000000000000000000000000000000000


Swarm Source

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