Token Sokolov Coin

 

Overview [ERC-20]

Max Total Supply:
11,000,000 SOKOL

Holders:
2

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
SokolCrowdsale

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-12-08
*/

pragma solidity ^0.4.24;

contract owned {

    address public owner;
    address public newOwner;

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

    function changeOwner(address _owner) onlyOwner public {
        newOwner = _owner;
    }

    function confirmOwner() public {
        require(newOwner == msg.sender);
        owner = newOwner;
    }
}

contract Crowdsale is owned {
    
    uint256 public totalSupply;
    string public priceOneTokenSokol = "1 token SOKOL = 0.01 ETH";
    mapping (address => uint256) public balanceOf;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Burn(address indexed from, uint256 value);

    constructor() public payable owned() {
        totalSupply = 11000000;
        balanceOf[this] = 10000000;
        balanceOf[owner] = totalSupply - balanceOf[this];
        emit Transfer(this, owner, balanceOf[owner]);
    }

    function () public payable {
        require(balanceOf[this] > 0);
        uint amountOfTokensForOneEther = 100;
        uint256 tokens = amountOfTokensForOneEther * msg.value / 1000000000000000000;
        if (tokens > balanceOf[this]) {
            tokens = balanceOf[this];
            uint256 valueWei = tokens * 1000000000000000000 / amountOfTokensForOneEther;
            msg.sender.transfer(msg.value - valueWei);
        }
        require(tokens > 0);
        balanceOf[msg.sender] += tokens;
        balanceOf[this] -= tokens;
        emit Transfer(this, msg.sender, tokens);
    }

    function burn(uint256 _value) public returns (bool success) {
        require(balanceOf[this] >= _value);
        balanceOf[this] -= _value;
        totalSupply -= _value;
        emit Burn(this, _value);
        return true;
    }
}

contract Token is Crowdsale {
    
    string  public name        = "Sokolov Coin";
    string  public symbol      = "SOKOL";
    uint8   public decimals    = 0;

    constructor() public payable Crowdsale() {}

    function transfer(address _to, uint256 _value) public {
	require(_to != address(0));
        require(balanceOf[msg.sender] >= _value);
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        balanceOf[msg.sender] -= _value;
        balanceOf[_to] += _value;
        emit Transfer(msg.sender, _to, _value);
    }
}

contract SokolCrowdsale is Token {

    constructor() public payable Token() {}
    
    function withdraw() public onlyOwner {
        owner.transfer(address(this).balance);
    }
}

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":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","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":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":"priceOneTokenSokol","outputs":[{"name":"","type":"string"}],"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":"_owner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"confirmOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","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"}]

60c0604052601860808190527f3120746f6b656e20534f4b4f4c203d20302e303120455448000000000000000060a090815261003e9160039190610167565b5060408051808201909152600c8082527f536f6b6f6c6f7620436f696e0000000000000000000000000000000000000000602090920191825261008391600591610167565b506040805180820190915260058082527f534f4b4f4c00000000000000000000000000000000000000000000000000000060209092019182526100c891600691610167565b506007805460ff1916905560008054600160a060020a0319163317815562a7d8c060029081553080835260046020908152604080852062989680905592548454600160a060020a0390811686528486206298967f1990920190915584541680855293839020548351908152925191927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3610202565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101a857805160ff19168380011785556101d5565b828001600101855582156101d5579182015b828111156101d55782518255916020019190600101906101ba565b506101e19291506101e5565b5090565b6101ff91905b808211156101e157600081556001016101eb565b90565b6107aa806102116000396000f3006080604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146101d557806318160ddd1461025f578063313ce567146102865780633ccfd60b146102b157806342966c68146102c857806370a08231146102f45780638da5cb5b14610315578063906c4ead1461034657806395d89b411461035b578063a6f9dae114610370578063a9059cbb14610391578063bd9b6d86146103b5578063d4ee1d90146103ca575b306000908152600460205260408120548190819081106100e357600080fd5b3060009081526004602052604090205460649350670de0b6b3a764000034850204925082111561016a5730600090815260046020526040902054915082670de0b6b3a7640000830281151561013457fe5b604051919004915033903483900380156108fc02916000818181858888f19350505050158015610168573d6000803e3d6000fd5b505b6000821161017757600080fd5b336000818152600460209081526040808320805487019055308084529281902080548790039055805186815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3505050005b3480156101e157600080fd5b506101ea6103df565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561022457818101518382015260200161020c565b50505050905090810190601f1680156102515780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561026b57600080fd5b5061027461046d565b60408051918252519081900360200190f35b34801561029257600080fd5b5061029b610473565b6040805160ff9092168252519081900360200190f35b3480156102bd57600080fd5b506102c661047c565b005b3480156102d457600080fd5b506102e06004356104d1565b604080519115158252519081900360200190f35b34801561030057600080fd5b50610274600160a060020a0360043516610549565b34801561032157600080fd5b5061032a61055b565b60408051600160a060020a039092168252519081900360200190f35b34801561035257600080fd5b506101ea61056a565b34801561036757600080fd5b506101ea6105c5565b34801561037c57600080fd5b506102c6600160a060020a0360043516610620565b34801561039d57600080fd5b506102c6600160a060020a0360043516602435610666565b3480156103c157600080fd5b506102c6610727565b3480156103d657600080fd5b5061032a61076f565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104655780601f1061043a57610100808354040283529160200191610465565b820191906000526020600020905b81548152906001019060200180831161044857829003601f168201915b505050505081565b60025481565b60075460ff1681565b600054600160a060020a0316331461049357600080fd5b60008054604051600160a060020a0390911691303180156108fc02929091818181858888f193505050501580156104ce573d6000803e3d6000fd5b50565b306000908152600460205260408120548211156104ed57600080fd5b3060008181526004602090815260409182902080548690039055600280548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b60046020526000908152604090205481565b600054600160a060020a031681565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104655780601f1061043a57610100808354040283529160200191610465565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104655780601f1061043a57610100808354040283529160200191610465565b600054600160a060020a0316331461063757600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a038216151561067b57600080fd5b3360009081526004602052604090205481111561069757600080fd5b600160a060020a03821660009081526004602052604090205481810110156106be57600080fd5b33600081815260046020908152604080832080548690039055600160a060020a03861680845292819020805486019055805185815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35050565b600154600160a060020a0316331461073e57600080fd5b6001546000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600154600160a060020a0316815600a165627a7a7230582062a404a29c09eddb48dfcc410777b1e39c64eb3d05e933945875bb8ece4782e30029

Swarm Source

bzzr://62a404a29c09eddb48dfcc410777b1e39c64eb3d05e933945875bb8ece4782e3

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.