Token White Rabbit Token

 

Overview [ERC-20]

Max Total Supply:
190,000,000 WRT

Holders:
5

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:
CommonToken

Compiler Version
v0.4.23+commit.124ca40d

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-04-29
*/

pragma solidity ^0.4.18;

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

    /**
     * @dev Multiplies two numbers, throws on overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        if (a == 0) {
            return 0;
        }
        c = a * b;
        assert(c / a == b);
        return c;
    }

    /**
     * @dev Integer division of two numbers, truncating the quotient.
     */
    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 a / b;
    }

    /**
     * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    /**
     * @dev Adds two numbers, throws on overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a + b;
        assert(c >= a);
        return c;
    }
}

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {

    address public owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    function Ownable() public {
        owner = msg.sender;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0));
        OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }
}

contract MultiOwnable {

    mapping(address => bool) public isOwner;
    address[] public ownerHistory;
    uint8 public ownerCount;

    event OwnerAddedEvent(address indexed _newOwner);
    event OwnerRemovedEvent(address indexed _oldOwner);

    function MultiOwnable() public {
        // Add default owner
        address owner = msg.sender;
        ownerHistory.push(owner);
        isOwner[owner] = true;
        ownerCount++;
    }

    modifier onlyOwner() {
        require(isOwner[msg.sender]);
        _;
    }

    function ownerHistoryCount() public view returns (uint) {
        return ownerHistory.length;
    }

    /** Add extra owner. */
    function addOwner(address owner) onlyOwner public {
        require(owner != address(0));
        require(!isOwner[owner]);
        ownerHistory.push(owner);
        isOwner[owner] = true;
        ownerCount++;
        OwnerAddedEvent(owner);
    }

    /** Remove extra owner. */
    function removeOwner(address owner) onlyOwner public {

        // This check is neccessary to prevent a situation where all owners 
        // are accidentally removed, because we do not want an ownable contract 
        // to become an orphan.
        require(ownerCount > 1);

        require(isOwner[owner]);
        isOwner[owner] = false;
        ownerCount--;
        OwnerRemovedEvent(owner);
    }
}

contract Pausable is Ownable {

    bool public paused;

    modifier ifNotPaused {
        require(!paused);
        _;
    }

    modifier ifPaused {
        require(paused);
        _;
    }

    // Called by the owner on emergency, triggers paused state
    function pause() external onlyOwner ifNotPaused {
        paused = true;
    }

    // Called by the owner on end of emergency, returns to normal state
    function resume() external onlyOwner ifPaused {
        paused = false;
    }
}

contract ERC20 {

    uint256 public totalSupply;

    function balanceOf(address _owner) public view returns (uint256 balance);

    function transfer(address _to, uint256 _value) public returns (bool success);

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);

    function approve(address _spender, uint256 _value) public returns (bool success);

    function allowance(address _owner, address _spender) public view returns (uint256 remaining);

    event Transfer(address indexed _from, address indexed _to, uint256 _value);

    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

contract StandardToken is ERC20 {

    using SafeMath for uint;

    mapping(address => uint256) balances;

    mapping(address => mapping(address => uint256)) allowed;

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

    function transfer(address _to, uint256 _value) public returns (bool) {
        require(_to != address(0));

        balances[msg.sender] = balances[msg.sender].sub(_value);
        balances[_to] = balances[_to].add(_value);
        Transfer(msg.sender, _to, _value);
        return true;
    }

    /// @dev Allows allowed third party to transfer tokens from one address to another. Returns success.
    /// @param _from Address from where tokens are withdrawn.
    /// @param _to Address to where tokens are sent.
    /// @param _value Number of tokens to transfer.
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
        require(_to != address(0));

        balances[_from] = balances[_from].sub(_value);
        balances[_to] = balances[_to].add(_value);
        allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
        Transfer(_from, _to, _value);
        return true;
    }

    /// @dev Sets approved amount of tokens for spender. Returns success.
    /// @param _spender Address of allowed account.
    /// @param _value Number of approved tokens.
    function approve(address _spender, uint256 _value) public returns (bool) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    /// @dev Returns number of allowed tokens for given address.
    /// @param _owner Address of token owner.
    /// @param _spender Address of token spender.
    function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }
}

contract CommonToken is StandardToken, MultiOwnable {

    string public constant name = 'White Rabbit Token';
    string public constant symbol = 'WRT';
    uint8 public constant decimals = 18;

    // The main account that holds all tokens from the time token created and during all tokensales.
    address public seller;

    // saleLimit (e18) Maximum amount of tokens for sale across all tokensales.
    // Reserved tokens formula: 16% Team + 6% Partners + 5% Advisory Board + 15% WR reserve 1 = 42%
    // For sale formula: 40% for sale + 1.5% Bounty + 16.5% WR reserve 2 = 58%
    uint256 public constant saleLimit = 110200000 ether;

    // Next fields are for stats:
    uint256 public tokensSold; // (e18) Number of tokens sold through all tiers or tokensales.
    uint256 public totalSales; // Total number of sales (including external sales) made through all tiers or tokensales.

    // Lock the transfer functions during tokensales to prevent price speculations.
    bool public locked = true;

    event SellEvent(address indexed _seller, address indexed _buyer, uint256 _value);
    event ChangeSellerEvent(address indexed _oldSeller, address indexed _newSeller);
    event Burn(address indexed _burner, uint256 _value);
    event Unlock();

    function CommonToken(
        address _seller
    ) MultiOwnable() public {

        require(_seller != 0);
        seller = _seller;

        totalSupply = 190000000 ether;
        balances[seller] = totalSupply;
        Transfer(0x0, seller, totalSupply);
    }

    modifier ifUnlocked() {
        require(isOwner[msg.sender] || !locked);
        _;
    }

    /**
     * An address can become a new seller only in case it has no tokens.
     * This is required to prevent stealing of tokens  from newSeller via 
     * 2 calls of this function.
     */
    function changeSeller(address newSeller) onlyOwner public returns (bool) {
        require(newSeller != address(0));
        require(seller != newSeller);

        // To prevent stealing of tokens from newSeller via 2 calls of changeSeller:
        require(balances[newSeller] == 0);

        address oldSeller = seller;
        uint256 unsoldTokens = balances[oldSeller];
        balances[oldSeller] = 0;
        balances[newSeller] = unsoldTokens;
        Transfer(oldSeller, newSeller, unsoldTokens);

        seller = newSeller;
        ChangeSellerEvent(oldSeller, newSeller);
        return true;
    }

    /**
     * User-friendly alternative to sell() function.
     */
    function sellNoDecimals(address _to, uint256 _value) public returns (bool) {
        return sell(_to, _value * 1e18);
    }

    function sell(address _to, uint256 _value) onlyOwner public returns (bool) {

        // Check that we are not out of limit and still can sell tokens:
        if (saleLimit > 0) require(tokensSold.add(_value) <= saleLimit);

        require(_to != address(0));
        require(_value > 0);
        require(_value <= balances[seller]);

        balances[seller] = balances[seller].sub(_value);
        balances[_to] = balances[_to].add(_value);
        Transfer(seller, _to, _value);

        totalSales++;
        tokensSold = tokensSold.add(_value);
        SellEvent(seller, _to, _value);
        return true;
    }

    function transfer(address _to, uint256 _value) ifUnlocked public returns (bool) {
        return super.transfer(_to, _value);
    }

    function transferFrom(address _from, address _to, uint256 _value) ifUnlocked public returns (bool) {
        return super.transferFrom(_from, _to, _value);
    }

    function burn(uint256 _value) public returns (bool) {
        require(_value > 0);

        balances[msg.sender] = balances[msg.sender].sub(_value);
        totalSupply = totalSupply.sub(_value);
        Transfer(msg.sender, 0x0, _value);
        Burn(msg.sender, _value);
        return true;
    }

    /** Can be called once by super owner. */
    function unlock() onlyOwner public {
        require(locked);
        locked = false;
        Unlock();
    }
}

contract CommonWhitelist is MultiOwnable {

    mapping(address => bool) public isAllowed;

    // Historical array of wallet that have bben added to whitelist,
    // even if some addresses have been removed later such wallet still remaining
    // in the history. This is Solidity optimization for work with large arrays.
    address[] public history;

    event AddedEvent(address indexed wallet);
    event RemovedEvent(address indexed wallet);

    function CommonWhitelist() MultiOwnable() public {}

    function historyCount() public view returns (uint) {
        return history.length;
    }

    function add(address _wallet) internal {
        require(_wallet != address(0));
        require(!isAllowed[_wallet]);

        history.push(_wallet);
        isAllowed[_wallet] = true;
        AddedEvent(_wallet);
    }

    function addMany(address[] _wallets) public onlyOwner {
        for (uint i = 0; i < _wallets.length; i++) {
            add(_wallets[i]);
        }
    }

    function remove(address _wallet) internal {
        require(isAllowed[_wallet]);

        isAllowed[_wallet] = false;
        RemovedEvent(_wallet);
    }

    function removeMany(address[] _wallets) public onlyOwner {
        for (uint i = 0; i < _wallets.length; i++) {
            remove(_wallets[i]);
        }
    }
}

//---------------------------------------------------------------
// Wings contracts: Start
// DO NOT CHANGE the next contracts. They were copied from Wings 
// and left unformated.

contract HasManager {
    address public manager;

    modifier onlyManager {
        require(msg.sender == manager);
        _;
    }

    function transferManager(address _newManager) public onlyManager() {
        require(_newManager != address(0));
        manager = _newManager;
    }
}

// Crowdsale contracts interface
contract ICrowdsaleProcessor is Ownable, HasManager {
    modifier whenCrowdsaleAlive() {
        require(isActive());
        _;
    }

    modifier whenCrowdsaleFailed() {
        require(isFailed());
        _;
    }

    modifier whenCrowdsaleSuccessful() {
        require(isSuccessful());
        _;
    }

    modifier hasntStopped() {
        require(!stopped);
        _;
    }

    modifier hasBeenStopped() {
        require(stopped);
        _;
    }

    modifier hasntStarted() {
        require(!started);
        _;
    }

    modifier hasBeenStarted() {
        require(started);
        _;
    }

    // Minimal acceptable hard cap
    uint256 constant public MIN_HARD_CAP = 1 ether;

    // Minimal acceptable duration of crowdsale
    uint256 constant public MIN_CROWDSALE_TIME = 3 days;

    // Maximal acceptable duration of crowdsale
    uint256 constant public MAX_CROWDSALE_TIME = 50 days;

    // Becomes true when timeframe is assigned
    bool public started;

    // Becomes true if cancelled by owner
    bool public stopped;

    // Total collected Ethereum: must be updated every time tokens has been sold
    uint256 public totalCollected;

    // Total amount of project's token sold: must be updated every time tokens has been sold
    uint256 public totalSold;

    // Crowdsale minimal goal, must be greater or equal to Forecasting min amount
    uint256 public minimalGoal;

    // Crowdsale hard cap, must be less or equal to Forecasting max amount
    uint256 public hardCap;

    // Crowdsale duration in seconds.
    // Accepted range is MIN_CROWDSALE_TIME..MAX_CROWDSALE_TIME.
    uint256 public duration;

    // Start timestamp of crowdsale, absolute UTC time
    uint256 public startTimestamp;

    // End timestamp of crowdsale, absolute UTC time
    uint256 public endTimestamp;

    // Allows to transfer some ETH into the contract without selling tokens
    function deposit() public payable {}

    // Returns address of crowdsale token, must be ERC20 compilant
    function getToken() public returns (address);

    // Transfers ETH rewards amount (if ETH rewards is configured) to Forecasting contract
    function mintETHRewards(address _contract, uint256 _amount) public onlyManager();

    // Mints token Rewards to Forecasting contract
    function mintTokenRewards(address _contract, uint256 _amount) public onlyManager();

    // Releases tokens (transfers crowdsale token from mintable to transferrable state)
    function releaseTokens() public onlyManager() hasntStopped() whenCrowdsaleSuccessful();

    // Stops crowdsale. Called by CrowdsaleController, the latter is called by owner.
    // Crowdsale may be stopped any time before it finishes.
    function stop() public onlyManager() hasntStopped();

    // Validates parameters and starts crowdsale
    function start(uint256 _startTimestamp, uint256 _endTimestamp, address _fundingAddress)
    public onlyManager() hasntStarted() hasntStopped();

    // Is crowdsale failed (completed, but minimal goal wasn't reached)
    function isFailed() public constant returns (bool);

    // Is crowdsale active (i.e. the token can be sold)
    function isActive() public constant returns (bool);

    // Is crowdsale completed successfully
    function isSuccessful() public constant returns (bool);
}

// Basic crowdsale implementation both for regualt and 3rdparty Crowdsale contracts
contract BasicCrowdsale is ICrowdsaleProcessor {
    event CROWDSALE_START(uint256 startTimestamp, uint256 endTimestamp, address fundingAddress);

    // Where to transfer collected ETH
    address public fundingAddress;

    // Ctor.
    function BasicCrowdsale(
        address _owner,
        address _manager
    )
    public
    {
        owner = _owner;
        manager = _manager;
    }

    // called by CrowdsaleController to transfer reward part of ETH
    // collected by successful crowdsale to Forecasting contract.
    // This call is made upon closing successful crowdfunding process
    // iff agreed ETH reward part is not zero
    function mintETHRewards(
        address _contract, // Forecasting contract
        uint256 _amount     // agreed part of totalCollected which is intended for rewards
    )
    public
    onlyManager() // manager is CrowdsaleController instance
    {
        require(_contract.call.value(_amount)());
    }

    // cancels crowdsale
    function stop() public onlyManager() hasntStopped() {
        // we can stop only not started and not completed crowdsale
        if (started) {
            require(!isFailed());
            require(!isSuccessful());
        }
        stopped = true;
    }

    // called by CrowdsaleController to setup start and end time of crowdfunding process
    // as well as funding address (where to transfer ETH upon successful crowdsale)
    function start(
        uint256 _startTimestamp,
        uint256 _endTimestamp,
        address _fundingAddress
    )
    public
    onlyManager() // manager is CrowdsaleController instance
    hasntStarted() // not yet started
    hasntStopped() // crowdsale wasn't cancelled
    {
        require(_fundingAddress != address(0));

        // start time must not be earlier than current time
        require(_startTimestamp >= block.timestamp);

        // range must be sane
        require(_endTimestamp > _startTimestamp);
        duration = _endTimestamp - _startTimestamp;

        // duration must fit constraints
        require(duration >= MIN_CROWDSALE_TIME && duration <= MAX_CROWDSALE_TIME);

        startTimestamp = _startTimestamp;
        endTimestamp = _endTimestamp;
        fundingAddress = _fundingAddress;

        // now crowdsale is considered started, even if the current time is before startTimestamp
        started = true;

        CROWDSALE_START(_startTimestamp, _endTimestamp, _fundingAddress);
    }

    // must return true if crowdsale is over, but it failed
    function isFailed()
    public
    constant
    returns (bool)
    {
        return (
        // it was started
        started &&

        // crowdsale period has finished
        block.timestamp >= endTimestamp &&

        // but collected ETH is below the required minimum
        totalCollected < minimalGoal
        );
    }

    // must return true if crowdsale is active (i.e. the token can be bought)
    function isActive()
    public
    constant
    returns (bool)
    {
        return (
        // it was started
        started &&

        // hard cap wasn't reached yet
        totalCollected < hardCap &&

        // and current time is within the crowdfunding period
        block.timestamp >= startTimestamp &&
        block.timestamp < endTimestamp
        );
    }

    // must return true if crowdsale completed successfully
    function isSuccessful()
    public
    constant
    returns (bool)
    {
        return (
        // either the hard cap is collected
        totalCollected >= hardCap ||

        // ...or the crowdfunding period is over, but the minimum has been reached
        (block.timestamp >= endTimestamp && totalCollected >= minimalGoal)
        );
    }
}

// Minimal crowdsale token for custom contracts
contract IWingsController {
    uint256 public ethRewardPart;
    uint256 public tokenRewardPart;
}

/*
  Implements custom crowdsale as bridge
*/
contract Bridge is BasicCrowdsale {
    using SafeMath for uint256;

    modifier onlyCrowdsale() {
        require(msg.sender == crowdsaleAddress);
        _;
    }

    // Crowdsale token
    StandardToken token;

    // Address of crowdsale
    address public crowdsaleAddress;

    // is crowdsale completed
    bool public completed;

    // Ctor. In this example, minimalGoal, hardCap, and price are not changeable.
    // In more complex cases, those parameters may be changed until start() is called.
    function Bridge(
        uint256 _minimalGoal,
        uint256 _hardCap,
        address _token,
        address _crowdsaleAddress
    )
    public
        // simplest case where manager==owner. See onlyOwner() and onlyManager() modifiers
        // before functions to figure out the cases in which those addresses should differ
    BasicCrowdsale(msg.sender, msg.sender)
    {
        // just setup them once...
        minimalGoal = _minimalGoal;
        hardCap = _hardCap;
        crowdsaleAddress = _crowdsaleAddress;
        token = StandardToken(_token);
    }

    // Here goes ICrowdsaleProcessor implementation

    // returns address of crowdsale token. The token must be ERC20-compliant
    function getToken()
    public
    returns (address)
    {
        return address(token);
    }

    // called by CrowdsaleController to transfer reward part of
    // tokens sold by successful crowdsale to Forecasting contract.
    // This call is made upon closing successful crowdfunding process.
    function mintTokenRewards(
        address _contract, // Forecasting contract
        uint256 _amount     // agreed part of totalSold which is intended for rewards
    )
    public
    onlyManager() // manager is CrowdsaleController instance
    {
        // crowdsale token is mintable in this example, tokens are created here
        token.transfer(_contract, _amount);
    }

    // transfers crowdsale token from mintable to transferrable state
    function releaseTokens()
    public
    onlyManager() // manager is CrowdsaleController instance
    hasntStopped() // crowdsale wasn't cancelled
    whenCrowdsaleSuccessful() // crowdsale was successful
    {
        // empty for bridge
    }

    // Here go crowdsale process itself and token manipulations

    // default function allows for ETH transfers to the contract
    function() payable public {
    }

    function notifySale(uint256 _ethAmount, uint256 _tokensAmount) public
    hasBeenStarted() // crowdsale started
    hasntStopped() // wasn't cancelled by owner
    whenCrowdsaleAlive() // in active state
    onlyCrowdsale() // can do only crowdsale
    {
        totalCollected = totalCollected.add(_ethAmount);
        totalSold = totalSold.add(_tokensAmount);
    }

    // finish collecting data
    function finish() public
    hasntStopped()
    hasBeenStarted()
    whenCrowdsaleAlive()
    onlyCrowdsale()
    {
        completed = true;
    }

    // project's owner withdraws ETH funds to the funding address upon successful crowdsale
    function withdraw(
        uint256 _amount // can be done partially
    )
    public
    onlyOwner() // project's owner
    hasntStopped() // crowdsale wasn't cancelled
    whenCrowdsaleSuccessful() // crowdsale completed successfully
    {
        // nothing to withdraw
    }

    // backers refund their ETH if the crowdsale was cancelled or has failed
    function refund()
    public
    {
        // nothing to refund
    }

    // called by CrowdsaleController to setup start and end time of crowdfunding process
    // as well as funding address (where to transfer ETH upon successful crowdsale)
    function start(
        uint256 _startTimestamp,
        uint256 _endTimestamp,
        address _fundingAddress
    )
    public
    onlyManager() // manager is CrowdsaleController instance
    hasntStarted() // not yet started
    hasntStopped() // crowdsale wasn't cancelled
    {
        // just start crowdsale
        started = true;

        CROWDSALE_START(_startTimestamp, _endTimestamp, _fundingAddress);
    }

    // must return true if crowdsale is over, but it failed
    function isFailed()
    public
    constant
    returns (bool)
    {
        return (
        false
        );
    }

    // must return true if crowdsale is active (i.e. the token can be bought)
    function isActive()
    public
    constant
    returns (bool)
    {
        return (
        // we remove timelines
        started && !completed
        );
    }

    // must return true if crowdsale completed successfully
    function isSuccessful()
    public
    constant
    returns (bool)
    {
        return (
        completed
        );
    }

    function calculateRewards() public view returns (uint256, uint256) {
        uint256 tokenRewardPart = IWingsController(manager).tokenRewardPart();
        uint256 ethRewardPart = IWingsController(manager).ethRewardPart();

        uint256 tokenReward = totalSold.mul(tokenRewardPart) / 1000000;
        bool hasEthReward = (ethRewardPart != 0);

        uint256 ethReward = 0;
        if (hasEthReward) {
            ethReward = totalCollected.mul(ethRewardPart) / 1000000;
        }

        return (ethReward, tokenReward);
    }
}

contract Connector is Ownable {
    modifier bridgeInitialized() {
        require(address(bridge) != address(0x0));
        _;
    }

    Bridge public bridge;

    function changeBridge(address _bridge) public onlyOwner {
        require(_bridge != address(0x0));
        bridge = Bridge(_bridge);
    }

    function notifySale(uint256 _ethAmount, uint256 _tokenAmount) internal bridgeInitialized {
        bridge.notifySale(_ethAmount, _tokenAmount);
    }

    function closeBridge() internal bridgeInitialized {
        bridge.finish();
    }
}

// Wings contracts: End
//---------------------------------------------------------------

contract CommonTokensale is Connector, Pausable {

    using SafeMath for uint;

    CommonToken public token;         // Token contract reference.
    CommonWhitelist public whitelist; // Whitelist contract reference.

    address public beneficiary;       // Address that will receive ETH raised during this tokensale.
    address public bsWallet = 0x8D5bd2aBa04A07Bfa0cc976C73eD45B23cC6D6a2;

    bool public whitelistEnabled = true;

    uint public constant preSaleMinPaymentWei = 5 ether;    // Hint: Set to lower amount (ex. 0.001 ETH) for tests.
    uint public constant mainSaleMinPaymentWei = 0.05 ether; // Hint: Set to lower amount (ex. 0.001 ETH) for tests.

    uint public defaultTokensPerWei = 4750; // TODO To be determined based on ETH to USD price at the date of sale.
    uint public tokensPerWei5;
    uint public tokensPerWei7;
    uint public tokensPerWei10;
    uint public tokensPerWei15;
    uint public tokensPerWei20;

    uint public minCapWei = 3200 ether;  // TODO  2m USD. Recalculate based on ETH to USD price at the date of tokensale.
    uint public maxCapWei = 16000 ether; // TODO 10m USD. Recalculate based on ETH to USD price at the date of tokensale.

    uint public constant startTime = 1525701600; // May 7, 2018 2:00:00 PM
    uint public constant preSaleEndTime = 1526306400; // May 14, 2018 2:00:00 PM
    uint public constant mainSaleStartTime = 1526392800; // May 15, 2018 2:00:00 PM
    uint public constant endTime = 1528639200; // June 10, 2018 2:00:00 PM

    // At main sale bonuses will be available only during the first 48 hours.
    uint public mainSaleBonusEndTime;

    // In case min (soft) cap is not reached, token buyers will be able to 
    // refund their contributions during one month after sale is finished.
    uint public refundDeadlineTime;

    // Stats for current tokensale:

    uint public totalTokensSold;  // Total amount of tokens sold during this tokensale.
    uint public totalWeiReceived; // Total amount of wei received during this tokensale.
    uint public totalWeiRefunded; // Total amount of wei refunded if min (soft) cap is not reached.

    // This mapping stores info on how many ETH (wei) have been sent to this tokensale from specific address.
    mapping(address => uint256) public buyerToSentWei;

    mapping(bytes32 => bool) public calledOnce;

    event ChangeBeneficiaryEvent(address indexed _oldAddress, address indexed _newAddress);
    event ChangeWhitelistEvent(address indexed _oldAddress, address indexed _newAddress);
    event ReceiveEthEvent(address indexed _buyer, uint256 _amountWei);
    event RefundEthEvent(address indexed _buyer, uint256 _amountWei);

    function CommonTokensale(
        address _token,
        address _whitelist,
        address _beneficiary
    ) public Connector() {
        require(_token != 0);
        require(_whitelist != 0);
        require(_beneficiary != 0);

        token = CommonToken(_token);
        whitelist = CommonWhitelist(_whitelist);
        beneficiary = _beneficiary;

        mainSaleBonusEndTime = mainSaleStartTime + 48 hours;
        refundDeadlineTime = endTime + 30 days;

        recalcBonuses();
    }

    modifier canBeCalledOnce(bytes32 _flag) {
        require(!calledOnce[_flag]);
        calledOnce[_flag] = true;
        _;
    }

    function updateMinCapEthOnce(uint _amountInEth) public onlyOwner canBeCalledOnce("updateMinCapEth") {
        minCapWei = _amountInEth * 1e18;
        // Convert ETH to Wei and update a min cap.
    }

    function updateMaxCapEthOnce(uint _amountInEth) public onlyOwner canBeCalledOnce("updateMaxCapEth") {
        maxCapWei = _amountInEth * 1e18;
        // Convert ETH to Wei and update a max cap.
    }

    function updateTokensPerEthOnce(uint _amountInEth) public onlyOwner canBeCalledOnce("updateTokensPerEth") {
        defaultTokensPerWei = _amountInEth;
        recalcBonuses();
    }

    function setBeneficiary(address _beneficiary) public onlyOwner {
        require(_beneficiary != 0);
        ChangeBeneficiaryEvent(beneficiary, _beneficiary);
        beneficiary = _beneficiary;
    }

    function setWhitelist(address _whitelist) public onlyOwner {
        require(_whitelist != 0);
        ChangeWhitelistEvent(whitelist, _whitelist);
        whitelist = CommonWhitelist(_whitelist);
    }

    function setWhitelistEnabled(bool _enabled) public onlyOwner {
        whitelistEnabled = _enabled;
    }

    /** The fallback function corresponds to a donation in ETH. */
    function() public payable {
        sellTokensForEth(msg.sender, msg.value);
    }

    function sellTokensForEth(
        address _buyer,
        uint256 _amountWei
    ) ifNotPaused internal {

        // Check that buyer is in whitelist onlist if whitelist check is enabled.
        if (whitelistEnabled) require(whitelist.isAllowed(_buyer));

        require(canAcceptPayment(_amountWei));
        require(totalWeiReceived < maxCapWei);

        uint256 newTotalReceived = totalWeiReceived.add(_amountWei);

        // Don't sell anything above the hard cap
        if (newTotalReceived > maxCapWei) {
            uint refundWei = newTotalReceived.sub(maxCapWei);
            _amountWei = _amountWei.sub(refundWei);

            // We need to check payment amount once more such as we updated 
            // (reduced) it in this if-clause.
            require(canAcceptPayment(_amountWei));

            // Send the ETH part which exceeds the hard cap back to the buyer:
            _buyer.transfer(refundWei);
        }

        uint tokensE18 = weiToTokens(_amountWei);
        // Transfer tokens to buyer.
        token.sell(_buyer, tokensE18);

        // 0.75% of sold tokens go to BS account:
        uint bsTokens = tokensE18.mul(75).div(10000);
        token.sell(bsWallet, bsTokens);

        // Update total stats:
        totalTokensSold = totalTokensSold.add(tokensE18).add(bsTokens);
        totalWeiReceived = totalWeiReceived.add(_amountWei);
        buyerToSentWei[_buyer] = buyerToSentWei[_buyer].add(_amountWei);
        ReceiveEthEvent(_buyer, _amountWei);

        // Notify Wings about successful sale of tokens:
        notifySale(_amountWei, tokensE18.add(bsTokens));
    }

    function recalcBonuses() internal {
        tokensPerWei5 = tokensPerWeiPlusBonus(5);
        tokensPerWei7 = tokensPerWeiPlusBonus(7);
        tokensPerWei10 = tokensPerWeiPlusBonus(10);
        tokensPerWei15 = tokensPerWeiPlusBonus(15);
        tokensPerWei20 = tokensPerWeiPlusBonus(20);
    }

    function tokensPerWeiPlusBonus(uint _per) public view returns (uint) {
        return defaultTokensPerWei.add(
            amountPercentage(defaultTokensPerWei, _per)
        );
    }

    function amountPercentage(uint _amount, uint _per) public pure returns (uint) {
        return _amount.mul(_per).div(100);
    }

    /** Calc how much tokens you can buy at current time. */
    function weiToTokens(uint _amountWei) public view returns (uint) {
        return _amountWei.mul(tokensPerWei(_amountWei));
    }

    function tokensPerWei(uint _amountWei) public view returns (uint256) {
        // Presale bonuses:
        if (isPreSaleTime()) {
            if (5 ether <= _amountWei && _amountWei < 10 ether) return tokensPerWei10;
            if (_amountWei < 20 ether) return tokensPerWei15;
            if (20 ether <= _amountWei) return tokensPerWei20;
        }
        // Main sale bonues:
        if (isMainSaleBonusTime()) {
            if (0.05 ether <= _amountWei && _amountWei < 10 ether) return tokensPerWei5;
            if (_amountWei < 20 ether) return tokensPerWei7;
            if (20 ether <= _amountWei) return tokensPerWei10;
        }
        return defaultTokensPerWei;
    }

    function canAcceptPayment(uint _amountWei) public view returns (bool) {
        if (isPreSaleTime()) return _amountWei >= preSaleMinPaymentWei;
        if (isMainSaleTime()) return _amountWei >= mainSaleMinPaymentWei;
        return false;
    }

    function isPreSaleTime() public view returns (bool) {
        return startTime <= now && now <= preSaleEndTime;
    }

    function isMainSaleBonusTime() public view returns (bool) {
        return mainSaleStartTime <= now && now <= mainSaleBonusEndTime;
    }

    function isMainSaleTime() public view returns (bool) {
        return mainSaleStartTime <= now && now <= endTime;
    }

    function isFinishedSuccessfully() public view returns (bool) {
        return totalWeiReceived >= minCapWei && now > endTime;
    }

    /** 
     * During tokensale it will be possible to withdraw only in two cases:
     * min cap reached OR refund period expired.
     */
    function canWithdraw() public view returns (bool) {
        return totalWeiReceived >= minCapWei || now > refundDeadlineTime;
    }

    /** 
     * This method allows to withdraw to any arbitrary ETH address. 
     * This approach gives more flexibility.
     */
    function withdraw(address _to, uint256 _amount) public {
        require(canWithdraw());
        require(msg.sender == beneficiary);
        require(_amount <= this.balance);

        _to.transfer(_amount);
    }

    function withdraw(address _to) public {
        withdraw(_to, this.balance);
    }

    /** 
     * It will be possible to refund only if min (soft) cap is not reached and 
     * refund requested during 30 days after tokensale finished.
     */
    function canRefund() public view returns (bool) {
        return totalWeiReceived < minCapWei && endTime < now && now <= refundDeadlineTime;
    }

    function refund() public {
        require(canRefund());

        address buyer = msg.sender;
        uint amount = buyerToSentWei[buyer];
        require(amount > 0);

        RefundEthEvent(buyer, amount);
        buyerToSentWei[buyer] = 0;
        totalWeiRefunded = totalWeiRefunded.add(amount);
        buyer.transfer(amount);
    }

    /**
     * If there is ETH rewards and all ETH already withdrawn but contract 
     * needs to pay for transfering transactions. 
     */
    function deposit() public payable {
        require(isFinishedSuccessfully());
    }

    /** 
     * This function should be called only once only after 
     * successfully finished tokensale. Once - because Wings bridge 
     * will be closed at the end of this function call.
     */
    function sendWingsRewardsOnce() public onlyOwner canBeCalledOnce("sendWingsRewards") {
        require(isFinishedSuccessfully());

        uint256 ethReward = 0;
        uint256 tokenReward = 0;

        (ethReward, tokenReward) = bridge.calculateRewards();

        if (ethReward > 0) {
            bridge.transfer(ethReward);
        }

        if (tokenReward > 0) {
            token.sell(bridge, tokenReward);
        }

        // Close Wings bridge
        closeBridge();
    }
}


// >> Start:
// >> EXAMPLE: How to deploy Token, Whitelist and Tokensale.

// token = new CommonToken(
//     0x123 // TODO Set seller address
// );
// whitelist = new CommonWhitelist();
// tokensale = new Tokensale(
//     token,
//     whitelist,
//     0x123 // TODO Set beneficiary address
// );
// token.addOwner(tokensale);

// << EXAMPLE: How to deploy Token, Whitelist and Tokensale.
// << End


// TODO After Tokensale deployed, call token.addOwner(address_of_deployed_tokensale)
contract ProdTokensale is CommonTokensale {
    function ProdTokensale() CommonTokensale(
        0x123, // TODO Set token address
        0x123, // TODO Set whitelist address
        0x123  // TODO Set beneficiary address
    ) public {}
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"seller","outputs":[{"name":"","type":"address"}],"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":"ownerCount","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"}],"name":"removeOwner","outputs":[],"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":"","type":"address"}],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"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":"ownerHistoryCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"ownerHistory","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSales","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"sell","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"}],"name":"addOwner","outputs":[],"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":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"sellNoDecimals","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"saleLimit","outputs":[{"name":"","type":"uint256"}],"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":"unlock","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"newSeller","type":"address"}],"name":"changeSeller","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"locked","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_seller","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_seller","type":"address"},{"indexed":true,"name":"_buyer","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"SellEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_oldSeller","type":"address"},{"indexed":true,"name":"_newSeller","type":"address"}],"name":"ChangeSellerEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_burner","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[],"name":"Unlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_newOwner","type":"address"}],"name":"OwnerAddedEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_oldOwner","type":"address"}],"name":"OwnerRemovedEvent","type":"event"},{"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"}]

60806040526001600860006101000a81548160ff02191690831515021790555034801561002b57600080fd5b5060405160208061224a83398101806040528101908080519060200190929190505050600033905060048190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506005600081819054906101000a900460ff168092919060010191906101000a81548160ff021916908360ff160217905550505060008173ffffffffffffffffffffffffffffffffffffffff161415151561016a57600080fd5b80600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506a9d2a10a37c185d7e00000060008190555060005460016000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000546040518082815260200191505060405180910390a350611fa1806102a96000396000f300608060405260043610610149576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461014e57806308551a53146101de578063095ea7b3146102355780630db026221461029a578063173825d9146102cb57806318160ddd1461030e57806323b872dd146103395780632f54bf6e146103be578063313ce56714610419578063370348531461044a57806342966c6814610475578063461fc090146104ba578063518ab2a8146105275780636605ff66146105525780636c197ff51461057d5780637065cb48146105e257806370a08231146106255780637c9473f61461067c5780637e26639f146106e157806395d89b411461070c578063a69df4b51461079c578063a9059cbb146107b3578063cd3a376a14610818578063cf30901214610873578063dd62ed3e146108a2575b600080fd5b34801561015a57600080fd5b50610163610919565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101a3578082015181840152602081019050610188565b50505050905090810190601f1680156101d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ea57600080fd5b506101f3610952565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024157600080fd5b50610280600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610978565b604051808215151515815260200191505060405180910390f35b3480156102a657600080fd5b506102af610a6a565b604051808260ff1660ff16815260200191505060405180910390f35b3480156102d757600080fd5b5061030c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a7d565b005b34801561031a57600080fd5b50610323610c1f565b6040518082815260200191505060405180910390f35b34801561034557600080fd5b506103a4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c25565b604051808215151515815260200191505060405180910390f35b3480156103ca57600080fd5b506103ff600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cab565b604051808215151515815260200191505060405180910390f35b34801561042557600080fd5b5061042e610ccb565b604051808260ff1660ff16815260200191505060405180910390f35b34801561045657600080fd5b5061045f610cd0565b6040518082815260200191505060405180910390f35b34801561048157600080fd5b506104a060048036038101908080359060200190929190505050610cdd565b604051808215151515815260200191505060405180910390f35b3480156104c657600080fd5b506104e560048036038101908080359060200190929190505050610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561053357600080fd5b5061053c610e82565b6040518082815260200191505060405180910390f35b34801561055e57600080fd5b50610567610e88565b6040518082815260200191505060405180910390f35b34801561058957600080fd5b506105c8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e8e565b604051808215151515815260200191505060405180910390f35b3480156105ee57600080fd5b50610623600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611299565b005b34801561063157600080fd5b50610666600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114bc565b6040518082815260200191505060405180910390f35b34801561068857600080fd5b506106c7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611505565b604051808215151515815260200191505060405180910390f35b3480156106ed57600080fd5b506106f6611523565b6040518082815260200191505060405180910390f35b34801561071857600080fd5b50610721611532565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610761578082015181840152602081019050610746565b50505050905090810190601f16801561078e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156107a857600080fd5b506107b161156b565b005b3480156107bf57600080fd5b506107fe600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611627565b604051808215151515815260200191505060405180910390f35b34801561082457600080fd5b50610859600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116ab565b604051808215151515815260200191505060405180910390f35b34801561087f57600080fd5b506108886119ea565b604051808215151515815260200191505060405180910390f35b3480156108ae57600080fd5b50610903600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506119fd565b6040518082815260200191505060405180910390f35b6040805190810160405280601281526020017f57686974652052616262697420546f6b656e000000000000000000000000000081525081565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b600560009054906101000a900460ff1681565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515610ad557600080fd5b6001600560009054906101000a900460ff1660ff16111515610af657600080fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515610b4e57600080fd5b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506005600081819054906101000a900460ff16809291906001900391906101000a81548160ff021916908360ff160217905550508073ffffffffffffffffffffffffffffffffffffffff167f6740775dd30bf47d42458b7044f4a4b0a275934f8a4f9269c8af6ab00b3a1e4560405160405180910390a250565b60005481565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610c8c5750600860009054906101000a900460ff16155b1515610c9757600080fd5b610ca2848484611a84565b90509392505050565b60036020528060005260406000206000915054906101000a900460ff1681565b601281565b6000600480549050905090565b60008082111515610ced57600080fd5b610d3f82600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d6a90919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d9782600054611d6a90919063ffffffff16565b60008190555060003373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a33373ffffffffffffffffffffffffffffffffffffffff167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5836040518082815260200191505060405180910390a260019050919050565b600481815481101515610e5357fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b60075481565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515610ee857600080fd5b60006a5b27c1f86bd0b11b0000001115610f2b576a5b27c1f86bd0b11b000000610f1d83600654611d8390919063ffffffff16565b11151515610f2a57600080fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610f6757600080fd5b600082111515610f7657600080fd5b60016000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610fe657600080fd5b61105a8260016000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d6a90919063ffffffff16565b60016000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061111182600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d8390919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a360076000815480929190600101919050555061120282600654611d8390919063ffffffff16565b6006819055508273ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f0b3929429b6ca2aa942889a74e3f9ef00786badc6df639433c7e6b8452f794f4846040518082815260200191505060405180910390a36001905092915050565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156112f157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561132d57600080fd5b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151561138657600080fd5b60048190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506005600081819054906101000a900460ff168092919060010191906101000a81548160ff021916908360ff160217905550508073ffffffffffffffffffffffffffffffffffffffff167f0775e4f247a7723929d271ccf476b51fb4284053cb3fd6cf3400228a9c02dbb860405160405180910390a250565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061151b83670de0b6b3a76400008402610e8e565b905092915050565b6a5b27c1f86bd0b11b00000081565b6040805190810160405280600381526020017f575254000000000000000000000000000000000000000000000000000000000081525081565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156115c357600080fd5b600860009054906101000a900460ff1615156115de57600080fd5b6000600860006101000a81548160ff0219169083151502179055507f70e3fffea7bbb557facdee48ed7f7af5179030adef9ad0c876df039a718f359e60405160405180910390a1565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061168e5750600860009054906101000a900460ff16155b151561169957600080fd5b6116a38383611d9f565b905092915050565b6000806000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561170857600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415151561174457600080fd5b8373ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515156117a157600080fd5b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415156117ef57600080fd5b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a383600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fad973c8ce253a4b476e472c552af0ea70aa2fb722d93b5871dfa8a77306a695b60405160405180910390a3600192505050919050565b600860009054906101000a900460ff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515611ac157600080fd5b611b1382600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d6a90919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ba882600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d8390919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611c7a82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d6a90919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b6000828211151515611d7857fe5b818303905092915050565b60008183019050828110151515611d9657fe5b80905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515611ddc57600080fd5b611e2e82600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d6a90919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ec382600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d8390919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a360019050929150505600a165627a7a7230582047db7640b83505d90656a5503caf3bc8669d990daf27d864a08b187dd0e33d0a0029000000000000000000000000c868347f7477ab02b901842c5791b95b5c058aa2

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

000000000000000000000000c868347f7477ab02b901842c5791b95b5c058aa2

-----Decoded View---------------
Arg [0] : _seller (address): 0xc868347f7477AB02B901842c5791b95b5C058Aa2

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c868347f7477ab02b901842c5791b95b5c058aa2


Swarm Source

bzzr://47db7640b83505d90656a5503caf3bc8669d990daf27d864a08b187dd0e33d0a

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.