ETH Price: $3,013.68 (+4.39%)
Gas: 4 Gwei

Token

KKGAME (KKG)
 

Overview

Max Total Supply

10,000,000,000 KKG

Holders

1,096

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 2 Decimals)

Balance
100 KKG

Value
$0.00
0x16a51077e0548cb265b223d180844beafb76e03b
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:
SSOrgToken

Compiler Version
v0.4.20+commit.3155dd80

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.16;

contract SSOrgToken {
    // Public variables of the token
    address public owner;
    string public name;
    string public symbol;
    uint8 public constant decimals = 2;
    uint256 public totalSupply;

    // This creates an array with all balances
    mapping (address => uint256) public balanceOf;
    mapping (address => uint8) public sellTypeOf;
    mapping (address => uint256) public sellTotalOf;
    mapping (address => uint256) public sellPriceOf;

    // This generates a public event on the blockchain that will notify clients
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * Constrctor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    function SSOrgToken(
        string tokenName,
        string tokenSymbol,
        uint256 tokenSupply
    ) public {
        name = tokenName;
        symbol = tokenSymbol;
        totalSupply = tokenSupply * 10 ** uint256(decimals);
        balanceOf[msg.sender] = totalSupply;                // Give the creator all initial tokens
        owner = msg.sender;
    }

    /**
     * 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 returns (bool) {
        // Prevent transfer to 0x0 address. Use burn() instead
        require(_to != 0x0);
        // Check if the sender has enough
        require(balanceOf[msg.sender] >= _value);
        // Check for overflows
        require(balanceOf[_to] + _value > balanceOf[_to]);
        // Subtract from the sender
        balanceOf[msg.sender] -= _value;
        // Add the same to the recipient
        balanceOf[_to] += _value;
        Transfer(msg.sender, _to, _value);
        return true;
    }

    function setSellInfo(uint8 newSellType, uint256 newSellTotal, uint256 newSellPrice) public returns (uint256) {
        require(newSellPrice > 0 && newSellTotal >= 0);
        if (newSellTotal > sellTotalOf[msg.sender]) {
            require(balanceOf[msg.sender] >= newSellTotal - sellTotalOf[msg.sender]);
            balanceOf[msg.sender] -= newSellTotal - sellTotalOf[msg.sender];
        } else {
            balanceOf[msg.sender] += sellTotalOf[msg.sender] - newSellTotal;
        }
        sellTotalOf[msg.sender] = newSellTotal;
        sellPriceOf[msg.sender] = newSellPrice;
        sellTypeOf[msg.sender] = newSellType;
        return balanceOf[msg.sender];
    }

    function buy(address seller) payable public returns (uint256 amount) {
        amount = msg.value / sellPriceOf[seller];        // calculates the amount
        require(sellTypeOf[seller] == 0 ? sellTotalOf[seller] == amount : sellTotalOf[seller] >= amount);
        balanceOf[msg.sender] += amount;                  // adds the amount to buyer's balance
        sellTotalOf[seller] -= amount;                        // subtracts amount from seller's balance
        Transfer(seller, msg.sender, amount);               // execute an event reflecting the change
        seller.transfer(msg.value);
        return amount;                                    // ends function and returns
    }
}

Contract Security Audit

Contract ABI

[{"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":"","type":"address"}],"name":"sellPriceOf","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":false,"inputs":[{"name":"newSellType","type":"uint8"},{"name":"newSellTotal","type":"uint256"},{"name":"newSellPrice","type":"uint256"}],"name":"setSellInfo","outputs":[{"name":"","type":"uint256"}],"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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"seller","type":"address"}],"name":"buy","outputs":[{"name":"amount","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"sellTypeOf","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"sellTotalOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"},{"name":"tokenSupply","type":"uint256"}],"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"}]

6060604052341561000f57600080fd5b6040516108c83803806108c88339810160405280805182019190602001805182019190602001805191506001905083805161004e92916020019061009e565b50600282805161006292916020019061009e565b506064026003819055600160a060020a0333166000818152600460205260408120929092558154600160a060020a031916179055506101399050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100df57805160ff191683800117855561010c565b8280016001018555821561010c579182015b8281111561010c5782518255916020019190600101906100f1565b5061011892915061011c565b5090565b61013691905b808211156101185760008155600101610122565b90565b610780806101486000396000f3006060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100be57806318160ddd1461014857806329181cbf1461016d578063313ce5671461018c57806370a08231146101b557806386e6361e146101d45780638da5cb5b146101f357806395d89b4114610222578063a9059cbb14610235578063f088d5471461026b578063f8638dd31461027f578063f9569beb1461029e575b600080fd5b34156100c957600080fd5b6100d16102bd565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010d5780820151838201526020016100f5565b50505050905090810190601f16801561013a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015357600080fd5b61015b61035b565b60405190815260200160405180910390f35b341561017857600080fd5b61015b600160a060020a0360043516610361565b341561019757600080fd5b61019f610373565b60405160ff909116815260200160405180910390f35b34156101c057600080fd5b61015b600160a060020a0360043516610378565b34156101df57600080fd5b61015b60ff6004351660243560443561038a565b34156101fe57600080fd5b6102066104ac565b604051600160a060020a03909116815260200160405180910390f35b341561022d57600080fd5b6100d16104bb565b341561024057600080fd5b610257600160a060020a0360043516602435610526565b604051901515815260200160405180910390f35b61015b600160a060020a03600435166105f7565b341561028a57600080fd5b61019f600160a060020a036004351661072d565b34156102a957600080fd5b61015b600160a060020a0360043516610742565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103535780601f1061032857610100808354040283529160200191610353565b820191906000526020600020905b81548152906001019060200180831161033657829003601f168201915b505050505081565b60035481565b60076020526000908152604090205481565b600281565b60046020526000908152604090205481565b6000808211801561039c575060008310155b15156103a757600080fd5b600160a060020a03331660009081526006602052604090205483111561042e57600160a060020a0333166000908152600660209081526040808320546004909252909120549084039010156103fb57600080fd5b600160a060020a03331660009081526006602090815260408083205460049092529091208054918503909103905561045e565b33600160a060020a0316600090815260066020908152604080832054600490925290912080549185900390910190555b50600160a060020a03331660009081526006602090815260408083208590556007825280832084905560058252808320805460ff881660ff1990911617905560049091529020549392505050565b600054600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103535780601f1061032857610100808354040283529160200191610353565b6000600160a060020a038316151561053d57600080fd5b600160a060020a0333166000908152600460205260409020548290101561056357600080fd5b600160a060020a0383166000908152600460205260409020548281011161058957600080fd5b600160a060020a033381166000818152600460205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a0381166000908152600760205260408120543481151561061a57fe5b600160a060020a038416600090815260056020526040902054919004915060ff161561066257600160a060020a0382166000908152600660205260409020548190101561067e565b600160a060020a03821660009081526006602052604090205481145b151561068957600080fd5b600160a060020a0333811660008181526004602090815260408083208054870190559386168083526006909152908390208054859003905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3600160a060020a0382163480156108fc0290604051600060405180830381858888f19350505050151561072857600080fd5b919050565b60056020526000908152604090205460ff1681565b600660205260009081526040902054815600a165627a7a723058208f7bea04d2b809ce59196586b591cf42e093c9b0f854f2c75e213caef5cc4daa0029000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000002540be40000000000000000000000000000000000000000000000000000000000000000064b4b47414d45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b4b470000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100be57806318160ddd1461014857806329181cbf1461016d578063313ce5671461018c57806370a08231146101b557806386e6361e146101d45780638da5cb5b146101f357806395d89b4114610222578063a9059cbb14610235578063f088d5471461026b578063f8638dd31461027f578063f9569beb1461029e575b600080fd5b34156100c957600080fd5b6100d16102bd565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010d5780820151838201526020016100f5565b50505050905090810190601f16801561013a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015357600080fd5b61015b61035b565b60405190815260200160405180910390f35b341561017857600080fd5b61015b600160a060020a0360043516610361565b341561019757600080fd5b61019f610373565b60405160ff909116815260200160405180910390f35b34156101c057600080fd5b61015b600160a060020a0360043516610378565b34156101df57600080fd5b61015b60ff6004351660243560443561038a565b34156101fe57600080fd5b6102066104ac565b604051600160a060020a03909116815260200160405180910390f35b341561022d57600080fd5b6100d16104bb565b341561024057600080fd5b610257600160a060020a0360043516602435610526565b604051901515815260200160405180910390f35b61015b600160a060020a03600435166105f7565b341561028a57600080fd5b61019f600160a060020a036004351661072d565b34156102a957600080fd5b61015b600160a060020a0360043516610742565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103535780601f1061032857610100808354040283529160200191610353565b820191906000526020600020905b81548152906001019060200180831161033657829003601f168201915b505050505081565b60035481565b60076020526000908152604090205481565b600281565b60046020526000908152604090205481565b6000808211801561039c575060008310155b15156103a757600080fd5b600160a060020a03331660009081526006602052604090205483111561042e57600160a060020a0333166000908152600660209081526040808320546004909252909120549084039010156103fb57600080fd5b600160a060020a03331660009081526006602090815260408083205460049092529091208054918503909103905561045e565b33600160a060020a0316600090815260066020908152604080832054600490925290912080549185900390910190555b50600160a060020a03331660009081526006602090815260408083208590556007825280832084905560058252808320805460ff881660ff1990911617905560049091529020549392505050565b600054600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103535780601f1061032857610100808354040283529160200191610353565b6000600160a060020a038316151561053d57600080fd5b600160a060020a0333166000908152600460205260409020548290101561056357600080fd5b600160a060020a0383166000908152600460205260409020548281011161058957600080fd5b600160a060020a033381166000818152600460205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a0381166000908152600760205260408120543481151561061a57fe5b600160a060020a038416600090815260056020526040902054919004915060ff161561066257600160a060020a0382166000908152600660205260409020548190101561067e565b600160a060020a03821660009081526006602052604090205481145b151561068957600080fd5b600160a060020a0333811660008181526004602090815260408083208054870190559386168083526006909152908390208054859003905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3600160a060020a0382163480156108fc0290604051600060405180830381858888f19350505050151561072857600080fd5b919050565b60056020526000908152604090205460ff1681565b600660205260009081526040902054815600a165627a7a723058208f7bea04d2b809ce59196586b591cf42e093c9b0f854f2c75e213caef5cc4daa0029

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000002540be40000000000000000000000000000000000000000000000000000000000000000064b4b47414d45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b4b470000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : tokenName (string): KKGAME
Arg [1] : tokenSymbol (string): KKG
Arg [2] : tokenSupply (uint256): 10000000000

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000002540be400
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 4b4b47414d450000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 4b4b470000000000000000000000000000000000000000000000000000000000


Swarm Source

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