ETH Price: $2,786.32 (+4.01%)

Contract

0x13Ea429825d087994d15a78e6F19353200157233
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer53042222018-03-23 0:46:142528 days ago1521765974IN
0x13Ea4298...200157233
0.01 ETH0.0010859550
Transfer50469572018-02-07 12:10:292572 days ago1518005429IN
0x13Ea4298...200157233
50 ETH0.003572750
Transfer50180182018-02-02 15:46:312577 days ago1517586391IN
0x13Ea4298...200157233
88 ETH0.002822750
Transfer50104822018-02-01 8:19:232578 days ago1517473163IN
0x13Ea4298...200157233
4.77 ETH0.002822750
Transfer50033352018-01-31 3:13:172579 days ago1517368397IN
0x13Ea4298...200157233
2.8 ETH0.0037259666
Transfer49981872018-01-30 6:08:052580 days ago1517292485IN
0x13Ea4298...200157233
19.98 ETH0.002822750
Transfer49981472018-01-30 5:58:382580 days ago1517291918IN
0x13Ea4298...200157233
1 ETH0.003572750
Transfer49913582018-01-29 2:20:012581 days ago1517192401IN
0x13Ea4298...200157233
15 ETH0.002822750
Transfer49883902018-01-28 14:33:022582 days ago1517149982IN
0x13Ea4298...200157233
100 ETH0.002822750
Transfer49864722018-01-28 6:59:312582 days ago1517122771IN
0x13Ea4298...200157233
130 ETH0.003572750
Transfer49863112018-01-28 6:21:072582 days ago1517120467IN
0x13Ea4298...200157233
120 ETH0.00050420
Transfer49816412018-01-27 11:35:302583 days ago1517052930IN
0x13Ea4298...200157233
4 ETH0.003572750
Transfer49798062018-01-27 4:14:082583 days ago1517026448IN
0x13Ea4298...200157233
200 ETH0.003572750
Transfer49795632018-01-27 3:18:302583 days ago1517023110IN
0x13Ea4298...200157233
200 ETH0.00050420
Transfer49751222018-01-26 9:18:112584 days ago1516958291IN
0x13Ea4298...200157233
50 ETH0.003572750
Add Special49739922018-01-26 4:35:222584 days ago1516941322IN
0x13Ea4298...200157233
0 ETH0.0026587860
Add Special49738502018-01-26 4:00:032584 days ago1516939203IN
0x13Ea4298...200157233
0 ETH0.0017549460
Add Special49738502018-01-26 4:00:032584 days ago1516939203IN
0x13Ea4298...200157233
0 ETH0.0026587860
Add Special49738502018-01-26 4:00:032584 days ago1516939203IN
0x13Ea4298...200157233
0 ETH0.0026549460
Transfer49731602018-01-26 1:22:052584 days ago1516929725IN
0x13Ea4298...200157233
0.002 ETH0.0033872460
Transfer49731392018-01-26 1:15:292584 days ago1516929329IN
0x13Ea4298...200157233
0.002 ETH0.0033872460
Transfer49731392018-01-26 1:15:292584 days ago1516929329IN
0x13Ea4298...200157233
0.002 ETH0.0033872460
Add Special49706442018-01-25 15:09:182585 days ago1516892958IN
0x13Ea4298...200157233
0 ETH0.0026587860
Transfer49690012018-01-25 8:28:522585 days ago1516868932IN
0x13Ea4298...200157233
2 ETH0.0037259666
Transfer49687092018-01-25 7:11:362585 days ago1516864296IN
0x13Ea4298...200157233
40 ETH0.002822750
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
50469572018-02-07 12:10:292572 days ago1518005429
0x13Ea4298...200157233
50 ETH
50180182018-02-02 15:46:312577 days ago1517586391
0x13Ea4298...200157233
88 ETH
50104822018-02-01 8:19:232578 days ago1517473163
0x13Ea4298...200157233
4.77 ETH
50033352018-01-31 3:13:172579 days ago1517368397
0x13Ea4298...200157233
2.8 ETH
49981872018-01-30 6:08:052580 days ago1517292485
0x13Ea4298...200157233
19.98 ETH
49981472018-01-30 5:58:382580 days ago1517291918
0x13Ea4298...200157233
1 ETH
49913582018-01-29 2:20:012581 days ago1517192401
0x13Ea4298...200157233
15 ETH
49883902018-01-28 14:33:022582 days ago1517149982
0x13Ea4298...200157233
100 ETH
49864722018-01-28 6:59:312582 days ago1517122771
0x13Ea4298...200157233
130 ETH
49816412018-01-27 11:35:302583 days ago1517052930
0x13Ea4298...200157233
4 ETH
49798062018-01-27 4:14:082583 days ago1517026448
0x13Ea4298...200157233
200 ETH
49751222018-01-26 9:18:112584 days ago1516958291
0x13Ea4298...200157233
50 ETH
49731602018-01-26 1:22:052584 days ago1516929725
0x13Ea4298...200157233
0.002 ETH
49731392018-01-26 1:15:292584 days ago1516929329
0x13Ea4298...200157233
0.002 ETH
49731392018-01-26 1:15:292584 days ago1516929329
0x13Ea4298...200157233
0.002 ETH
49690012018-01-25 8:28:522585 days ago1516868932
0x13Ea4298...200157233
2 ETH
49687092018-01-25 7:11:362585 days ago1516864296
0x13Ea4298...200157233
40 ETH
49686902018-01-25 7:07:462585 days ago1516864066
0x13Ea4298...200157233
2 ETH
49677642018-01-25 3:29:522585 days ago1516850992
0x13Ea4298...200157233
1 ETH
49581842018-01-23 12:46:432587 days ago1516711603
0x13Ea4298...200157233
10.01 ETH
49576022018-01-23 10:29:062587 days ago1516703346
0x13Ea4298...200157233
41.4802 ETH
49566172018-01-23 6:24:522587 days ago1516688692
0x13Ea4298...200157233
510 ETH
49523312018-01-22 12:49:062588 days ago1516625346
0x13Ea4298...200157233
29.98 ETH
49523292018-01-22 12:48:402588 days ago1516625320
0x13Ea4298...200157233
13 ETH
49508942018-01-22 6:53:432588 days ago1516604023
0x13Ea4298...200157233
6 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VCBCrowdSaleNew

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-01-15
*/

pragma solidity ^0.4.18;

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  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 c;
  }

  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

    // SafeMath.sub will throw if there is not enough balance.
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) public view returns (uint256 balance) {
    return balances[_owner];
  }

}

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public view returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

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


  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);

    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 Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   *
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(address _owner, address _spender) public view returns (uint256) {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
    uint oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}

/**
 * @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;
  }

}

/**
 * @title Mintable token
 * @dev Simple ERC20 Token example, with mintable token creation
 * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120
 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
 */

contract MintableToken is StandardToken, Ownable {
  event Mint(address indexed to, uint256 amount);
  event MintFinished();

  bool public mintingFinished = false;


  modifier canMint() {
    require(!mintingFinished);
    _;
  }

  /**
   * @dev Function to mint tokens
   * @param _to The address that will receive the minted tokens.
   * @param _amount The amount of tokens to mint.
   * @return A boolean that indicates if the operation was successful.
   */
  function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
    totalSupply = totalSupply.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    Mint(_to, _amount);
    Transfer(address(0), _to, _amount);
    return true;
  }

  /**
   * @dev Function to stop minting new tokens.
   * @return True if the operation was successful.
   */
  function finishMinting() onlyOwner canMint public returns (bool) {
    mintingFinished = true;
    MintFinished();
    return true;
  }
}

/**
 * @title Crowdsale
 * @dev Crowdsale is a base contract for managing a token crowdsale.
 * Crowdsales have a start and end timestamps, where investors can make
 * token purchases and the crowdsale will assign them tokens based
 * on a token per ETH rate. Funds collected are forwarded to a wallet
 * as they arrive.
 */
contract Crowdsale {
  using SafeMath for uint256;

  // The token being sold
  MintableToken public token;

  // start and end timestamps where investments are allowed (both inclusive)
  uint256 public startTime;
  uint256 public endTime;

  // address where funds are collected
  address public wallet;

  // how many token units a buyer gets per wei
  uint256 public rate;

  // amount of raised money in wei
  uint256 public weiRaised;

  /**
   * event for token purchase logging
   * @param purchaser who paid for the tokens
   * @param beneficiary who got the tokens
   * @param value weis paid for purchase
   * @param amount amount of tokens purchased
   */
  event TokenPurchase(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount);


  function Crowdsale(uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet) public {
    require(_startTime >= now);
    require(_endTime >= _startTime);
    require(_rate > 0);
    require(_wallet != address(0));

    token = createTokenContract();
    startTime = _startTime;
    endTime = _endTime;
    rate = _rate;
    wallet = _wallet;
  }

  // creates the token to be sold.
  // override this method to have crowdsale of a specific mintable token.
  function createTokenContract() internal returns (MintableToken) {
    return new MintableToken();
  }


  // fallback function can be used to buy tokens
  function () external payable {
    buyTokens(msg.sender);
  }

  // low level token purchase function
  function buyTokens(address beneficiary) public payable {
    require(beneficiary != address(0));
    require(validPurchase());

    uint256 weiAmount = msg.value;

    // calculate token amount to be created
    uint256 tokens = weiAmount.mul(rate);

    // update state
    weiRaised = weiRaised.add(weiAmount);

    token.mint(beneficiary, tokens);
    TokenPurchase(msg.sender, beneficiary, weiAmount, tokens);

    forwardFunds();
  }

  // send ether to the fund collection wallet
  // override to create custom fund forwarding mechanisms
  function forwardFunds() internal {
    wallet.transfer(msg.value);
  }

  // @return true if the transaction can buy tokens
  function validPurchase() internal view returns (bool) {
    bool withinPeriod = now >= startTime && now <= endTime;
    bool nonZeroPurchase = msg.value != 0;
    return withinPeriod && nonZeroPurchase;
  }

  // @return true if crowdsale event has ended
  function hasEnded() public view returns (bool) {
    return now > endTime;
  }


}

contract DetailedERC20 is ERC20 {
  string public name;
  string public symbol;
  uint8 public decimals;

  function DetailedERC20(string _name, string _symbol, uint8 _decimals) public {
    name = _name;
    symbol = _symbol;
    decimals = _decimals;
  }
}

/**
 * @title Capped token
 * @dev Mintable token with a token cap.
 */

contract CappedToken is MintableToken {

  uint256 public cap;

  function CappedToken(uint256 _cap) public {
    require(_cap > 0);
    cap = _cap;
  }

  /**
   * @dev Function to mint tokens
   * @param _to The address that will receive the minted tokens.
   * @param _amount The amount of tokens to mint.
   * @return A boolean that indicates if the operation was successful.
   */
  function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
    require(totalSupply.add(_amount) <= cap);

    return super.mint(_to, _amount);
  }

}

/**
 * @title Burnable Token
 * @dev Token that can be irreversibly burned (destroyed).
 */
contract BurnableToken is BasicToken {

    event Burn(address indexed burner, uint256 value);

    /**
     * @dev Burns a specific amount of tokens.
     * @param _value The amount of token to be burned.
     */
    function burn(uint256 _value) public {
        require(_value <= balances[msg.sender]);
        // no need to require value <= totalSupply, since that would imply the
        // sender's balance is greater than the totalSupply, which *should* be an assertion failure

        address burner = msg.sender;
        balances[burner] = balances[burner].sub(_value);
        totalSupply = totalSupply.sub(_value);
        Burn(burner, _value);
    }
}

contract VCBToken is CappedToken, BurnableToken, DetailedERC20 {

    using SafeMath for uint256;

    uint8 constant DECIMALS = 18;
    uint  constant TOTALTOKEN = 1 * 10 ** (9 + uint(DECIMALS));
    string constant NAME = "ValueCyberToken";
    string constant SYM = "VCT";

    address constant PRESALE = 0x638a3C7dF9D1B3A56E19B92bE07eCC84b6475BD6;
    uint  constant PRESALETOKEN = 7 * 10 ** (8 + uint(DECIMALS));

    function VCBToken() CappedToken(TOTALTOKEN) DetailedERC20 (NAME, SYM, DECIMALS) public {
        
        balances[PRESALE] = PRESALETOKEN;
        totalSupply = totalSupply.add(PRESALETOKEN);
    }

}

contract VCBCrowdSale is Crowdsale, Ownable {

    using SafeMath for uint256;

    uint  constant RATIO = 9000;
    uint16 constant RATIODENO = 10000;
    uint constant SALELASTFOR = 31 days;
    address constant FUNDWALLET = 0x622969e0928fa6bEeda9f26F8a60D0b22Db7E6f1;

    mapping(address => uint16) giftList;

    event CrowdsaleFinalized();
    /**
    * event for token gift logging
    * @param beneficiary who got the gifted tokens
    * @param amount amount of tokens gifted
    */
    event TokenGift(address indexed beneficiary, uint256 amount);

    function VCBCrowdSale(uint256 start) Crowdsale(start, start + SALELASTFOR, RATIO, FUNDWALLET) public {
    }

    function createTokenContract() internal returns (MintableToken) {
        return new VCBToken();
    }

    //our crowdsale can stop at anytime, and then the totally crowsale contract is disappear
    function finalize(address _finaladdr) onlyOwner public {
        token.finishMinting();
        CrowdsaleFinalized();

        address finaladdr = FUNDWALLET;
        if (_finaladdr != address(0)) {
            finaladdr = _finaladdr;
        }

        selfdestruct(finaladdr);
    }  

    function giftTokens(address beneficiary) internal {
        uint256 weiAmount = msg.value;

        // calculate token amount to be created
        uint256 gifttokens = weiAmount.mul(giftList[beneficiary]).mul(rate).div(RATIODENO);
        if (gifttokens > 0) {

            //if gift token can't be sent, contract still fails
            token.mint(beneficiary, gifttokens);
            TokenGift(beneficiary, gifttokens);
        }

    }

    // override token purchase to send additional token for registered address
    function buyTokens(address beneficiary) public payable {

        super.buyTokens(beneficiary);

        //if address is in discount list, we gift it more tokens according to the ratio (in percentage)
        giftTokens(beneficiary);
    }

    function addGift(address beneficiary, uint16 giftratio) onlyOwner public {
        require(giftratio < RATIODENO);
        giftList[beneficiary] = giftratio;
    }

    /**
    * @dev Gets the gift ratio of the specified address.
    * @param _owner The address to query the gift ratio of.
    * @return An uint16 representing the ratio obtained by the passed address.
    */
    function giftRatioOf(address _owner) public view returns (uint16 ratio) {
        return giftList[_owner];
    }

    // directly mint tokens
    function preserveTokens(address preservecontract, uint256 amount) onlyOwner public {        
        token.mint(preservecontract, amount);
    }    

}

contract VCBCrowdSaleNew is Crowdsale, Ownable {

    using SafeMath for uint256;

    uint  constant RATIO = 9000;
    uint constant SALELASTFOR = 31 days;
    address constant FUNDWALLET = 0x622969e0928fa6bEeda9f26F8a60D0b22Db7E6f1;
    address constant PRESALE = 0x638a3C7dF9D1B3A56E19B92bE07eCC84b6475BD6;
    address constant OLDCROWDSALE = 0x84098D815D54668BdA5FC9C0f0FC8783bA749947;

    mapping(address => uint16) sellList;

    event CrowdsaleFinalized();

    function VCBCrowdSaleNew(uint256 start) Crowdsale(start, start + SALELASTFOR, RATIO, FUNDWALLET) public {        
    }

    function createTokenContract() internal returns (MintableToken) {
        VCBCrowdSale oldsale = VCBCrowdSale(OLDCROWDSALE);
        weiRaised = oldsale.weiRaised();
        return oldsale.token();
    }

    //our crowdsale can stop at anytime, and then the totally crowsale contract is disappear
    function finalize(address _finaladdr) onlyOwner public {

        CrowdsaleFinalized();

        address finaladdr = PRESALE;
        if (_finaladdr != address(0)) {
            finaladdr = _finaladdr;
        }

        uint256 restbalance = token.balanceOf(this);
        token.transfer(finaladdr, restbalance);
        selfdestruct(finaladdr);
    }  

    // override token purchase to transfer token hold by contract 
    function buyTokens(address beneficiary) public payable {

        require(beneficiary != address(0));
        require(validPurchase());

        //get rate from sellList, and only this member can buy
        uint16 usedrate = sellList[beneficiary];
        require(usedrate > 0);

        uint256 weiAmount = msg.value;
        uint256 curbalance = token.balanceOf(this);

        // calculate token amount to be created
        uint256 tokens = weiAmount.mul(usedrate);

        require(curbalance >= tokens);

        // update state
        weiRaised = weiRaised.add(weiAmount);

        token.transfer(beneficiary, tokens);
        TokenPurchase(msg.sender, beneficiary, weiAmount, tokens);

        forwardFunds();
    }

    function addPurchaser(address u) onlyOwner public {
        sellList[u] = uint16(rate);
    }

    function addSpecial(address u, uint16 ratio) onlyOwner public {
        require(ratio > uint16(rate));
        sellList[u] = ratio;
    }

    /**
    * @dev Gets the ratio of the specified address.
    * @param _owner The address to query the gift ratio of.
    * @return An uint16 representing the ratio obtained by the passed address.
    */
    function getRatioOf(address _owner) public view returns (uint16 ratio) {
        return sellList[_owner];
    } 

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"rate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"endTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_finaladdr","type":"address"}],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","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":false,"inputs":[{"name":"u","type":"address"},{"name":"ratio","type":"uint16"}],"name":"addSpecial","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"u","type":"address"}],"name":"addPurchaser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"getRatioOf","outputs":[{"name":"ratio","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"hasEnded","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"start","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[],"name":"CrowdsaleFinalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"purchaser","type":"address"},{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"TokenPurchase","type":"event"}]

6060604052341561000f57600080fd5b604051602080610b2b8339810160405280805191508190506228de80810161232873622969e0928fa6beeda9f26f8a60d0b22db7e6f14284101561005257600080fd5b8383101561005f57600080fd5b6000821161006c57600080fd5b600160a060020a038116151561008157600080fd5b6100966401000000006108286100ea82021704565b60008054600160a060020a0319908116600160a060020a03938416179091556001959095556002939093556004919091556003805484169183169190911790556006805490921633909116179055506101f2565b60007384098d815d54668bda5fc9c0f0fc8783ba74994780634042b66f83604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561015657600080fd5b6102c65a03f1151561016757600080fd5b505050604051805160055550600160a060020a03811663fc0c546a6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156101d257600080fd5b6102c65a03f115156101e357600080fd5b50505060405180519250505090565b61092a806102016000396000f3006060604052600436106100b65763ffffffff60e060020a6000350416632c4e722e81146100c15780633197cbb6146100e65780634042b66f146100f95780634ef39b751461010c578063521eb2731461012b57806378e979251461015a5780638da5cb5b1461016d5780639933d22514610180578063a0e1f42c146101a6578063cdbd0f0e146101c5578063ec8ac4d8146101fb578063ecb70fb71461020f578063f2fde38b14610236578063fc0c546a14610255575b6100bf33610268565b005b34156100cc57600080fd5b6100d461044e565b60405190815260200160405180910390f35b34156100f157600080fd5b6100d4610454565b341561010457600080fd5b6100d461045a565b341561011757600080fd5b6100bf600160a060020a0360043516610460565b341561013657600080fd5b61013e6105d9565b604051600160a060020a03909116815260200160405180910390f35b341561016557600080fd5b6100d46105e8565b341561017857600080fd5b61013e6105ee565b341561018b57600080fd5b6100bf600160a060020a036004351661ffff602435166105fd565b34156101b157600080fd5b6100bf600160a060020a036004351661065f565b34156101d057600080fd5b6101e4600160a060020a03600435166106ac565b60405161ffff909116815260200160405180910390f35b6100bf600160a060020a0360043516610268565b341561021a57600080fd5b6102226106cb565b604051901515815260200160405180910390f35b341561024157600080fd5b6100bf600160a060020a03600435166106d3565b341561026057600080fd5b61013e61076e565b6000808080600160a060020a038516151561028257600080fd5b61028a61077d565b151561029557600080fd5b600160a060020a03851660009081526007602052604081205461ffff16945084116102bf57600080fd5b60008054349450600160a060020a0316906370a082319030906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561031d57600080fd5b6102c65a03f1151561032e57600080fd5b5050506040518051925061034e90508361ffff861663ffffffff6107ad16565b90508082101561035d57600080fd5b600554610370908463ffffffff6107e316565b60055560008054600160a060020a03169063a9059cbb90879084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156103d557600080fd5b6102c65a03f115156103e657600080fd5b505050604051805190505084600160a060020a031633600160a060020a03167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad18858460405191825260208201526040908101905180910390a36104476107f2565b5050505050565b60045481565b60025481565b60055481565b600654600090819033600160a060020a0390811691161461048057600080fd5b7f9270cc390c096600a1c17c44345a1ba689fafd99d97487b10cfccf86cf73183660405160405180910390a173638a3c7df9d1b3a56e19b92be07ecc84b6475bd69150600160a060020a038316156104d6578291505b60008054600160a060020a0316906370a082319030906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561053157600080fd5b6102c65a03f1151561054257600080fd5b505050604051805160008054919350600160a060020a03909116915063a9059cbb90849084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156105b257600080fd5b6102c65a03f115156105c357600080fd5b50505060405180515050600160a060020a038216ff5b600354600160a060020a031681565b60015481565b600654600160a060020a031681565b60065433600160a060020a0390811691161461061857600080fd5b60045461ffff168161ffff1611151561063057600080fd5b600160a060020a03919091166000908152600760205260409020805461ffff191661ffff909216919091179055565b60065433600160a060020a0390811691161461067a57600080fd5b600454600160a060020a03919091166000908152600760205260409020805461ffff191661ffff909216919091179055565b600160a060020a031660009081526007602052604090205461ffff1690565b600254421190565b60065433600160a060020a039081169116146106ee57600080fd5b600160a060020a038116151561070357600080fd5b600654600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a031681565b6000806000600154421015801561079657506002544211155b9150503415158180156107a65750805b9250505090565b6000808315156107c057600091506107dc565b508282028284828115156107d057fe5b04146107d857fe5b8091505b5092915050565b6000828201838110156107d857fe5b600354600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561082657600080fd5b565b60007384098d815d54668bda5fc9c0f0fc8783ba74994780634042b66f83604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561087b57600080fd5b6102c65a03f1151561088c57600080fd5b505050604051805160055550600160a060020a03811663fc0c546a6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156108de57600080fd5b6102c65a03f115156108ef57600080fd5b505050604051805192505050905600a165627a7a723058209b07be54fc3be95e249304ffc61737460d4ead41a0a9ea4bb29630f9a7d8bf6c0029000000000000000000000000000000000000000000000000000000005a5d4080

Deployed Bytecode

0x6060604052600436106100b65763ffffffff60e060020a6000350416632c4e722e81146100c15780633197cbb6146100e65780634042b66f146100f95780634ef39b751461010c578063521eb2731461012b57806378e979251461015a5780638da5cb5b1461016d5780639933d22514610180578063a0e1f42c146101a6578063cdbd0f0e146101c5578063ec8ac4d8146101fb578063ecb70fb71461020f578063f2fde38b14610236578063fc0c546a14610255575b6100bf33610268565b005b34156100cc57600080fd5b6100d461044e565b60405190815260200160405180910390f35b34156100f157600080fd5b6100d4610454565b341561010457600080fd5b6100d461045a565b341561011757600080fd5b6100bf600160a060020a0360043516610460565b341561013657600080fd5b61013e6105d9565b604051600160a060020a03909116815260200160405180910390f35b341561016557600080fd5b6100d46105e8565b341561017857600080fd5b61013e6105ee565b341561018b57600080fd5b6100bf600160a060020a036004351661ffff602435166105fd565b34156101b157600080fd5b6100bf600160a060020a036004351661065f565b34156101d057600080fd5b6101e4600160a060020a03600435166106ac565b60405161ffff909116815260200160405180910390f35b6100bf600160a060020a0360043516610268565b341561021a57600080fd5b6102226106cb565b604051901515815260200160405180910390f35b341561024157600080fd5b6100bf600160a060020a03600435166106d3565b341561026057600080fd5b61013e61076e565b6000808080600160a060020a038516151561028257600080fd5b61028a61077d565b151561029557600080fd5b600160a060020a03851660009081526007602052604081205461ffff16945084116102bf57600080fd5b60008054349450600160a060020a0316906370a082319030906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561031d57600080fd5b6102c65a03f1151561032e57600080fd5b5050506040518051925061034e90508361ffff861663ffffffff6107ad16565b90508082101561035d57600080fd5b600554610370908463ffffffff6107e316565b60055560008054600160a060020a03169063a9059cbb90879084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156103d557600080fd5b6102c65a03f115156103e657600080fd5b505050604051805190505084600160a060020a031633600160a060020a03167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad18858460405191825260208201526040908101905180910390a36104476107f2565b5050505050565b60045481565b60025481565b60055481565b600654600090819033600160a060020a0390811691161461048057600080fd5b7f9270cc390c096600a1c17c44345a1ba689fafd99d97487b10cfccf86cf73183660405160405180910390a173638a3c7df9d1b3a56e19b92be07ecc84b6475bd69150600160a060020a038316156104d6578291505b60008054600160a060020a0316906370a082319030906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561053157600080fd5b6102c65a03f1151561054257600080fd5b505050604051805160008054919350600160a060020a03909116915063a9059cbb90849084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156105b257600080fd5b6102c65a03f115156105c357600080fd5b50505060405180515050600160a060020a038216ff5b600354600160a060020a031681565b60015481565b600654600160a060020a031681565b60065433600160a060020a0390811691161461061857600080fd5b60045461ffff168161ffff1611151561063057600080fd5b600160a060020a03919091166000908152600760205260409020805461ffff191661ffff909216919091179055565b60065433600160a060020a0390811691161461067a57600080fd5b600454600160a060020a03919091166000908152600760205260409020805461ffff191661ffff909216919091179055565b600160a060020a031660009081526007602052604090205461ffff1690565b600254421190565b60065433600160a060020a039081169116146106ee57600080fd5b600160a060020a038116151561070357600080fd5b600654600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a031681565b6000806000600154421015801561079657506002544211155b9150503415158180156107a65750805b9250505090565b6000808315156107c057600091506107dc565b508282028284828115156107d057fe5b04146107d857fe5b8091505b5092915050565b6000828201838110156107d857fe5b600354600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561082657600080fd5b565b60007384098d815d54668bda5fc9c0f0fc8783ba74994780634042b66f83604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561087b57600080fd5b6102c65a03f1151561088c57600080fd5b505050604051805160055550600160a060020a03811663fc0c546a6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156108de57600080fd5b6102c65a03f115156108ef57600080fd5b505050604051805192505050905600a165627a7a723058209b07be54fc3be95e249304ffc61737460d4ead41a0a9ea4bb29630f9a7d8bf6c0029

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

000000000000000000000000000000000000000000000000000000005a5d4080

-----Decoded View---------------
Arg [0] : start (uint256): 1516060800

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000005a5d4080


Swarm Source

bzzr://9b07be54fc3be95e249304ffc61737460d4ead41a0a9ea4bb29630f9a7d8bf6c

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.