Sponsored Link:   SHIFT.cash - 1st ever car title loan platform on blockchain. Join NOW.
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 9428 txns
Misc
Address Watch Add To Watch List
Contract Creator 0x9656e8520c1cc10721963f2e974761cf76af81d8at txn 0x6af520fae19344f37b4a3e77d4c3356201c8875232e31455c7d7a7c7e16da346
Token Tracker
  Latest 25 txns from a total Of 9428 transactions View All

TxHash Age From To Value [TxFee]
0x5f5f086f049e3d4f50664613b005b2cb05dec2307545e05544a0b005a14402e13 days 22 hrs ago0xe2aa21dea3ffc84c3a48eedd3db732901a257bd9  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.005 Ether0.00067221
0x5a053acce82a3d0191598cc758e58e740e143acc8da5ba28e7db0025e4e158324 days 5 hrs ago0x089aebece027d4faff21e255d7fa122efe06aa6a  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22411.327 Ether0.004194796
0xb1b3ec990e48b5e51eb605003e65317e8ff84401f7741aaa1b89cd2a727533fc4 days 8 hrs ago0x089aebece027d4faff21e255d7fa122efe06aa6a  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.163 Ether0.004194796
0x392c3d4bfa4521a32ff3f45819ab64aaeeadce417796aab963a45398b80cf8894 days 8 hrs ago0x089aebece027d4faff21e255d7fa122efe06aa6a  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.01 Ether0.005124796
0xddc3e9adf6ee838a7d83366072d1db7eb8a80566ff4f5abc789588587eea3cd04 days 8 hrs ago0x120bd0228acfb40f13b45e0d6dead39d9972f046  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.1 Ether0.00293071658
0xaee3615dd31db878ffc63c433051ce96d3fbba148aa33a3c93b944cc0546d43c4 days 10 hrs ago0x00f1f97ecbe943390983c33575b73e9dd903d942  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.167573084715811 Ether0.00495948
0x9682657ab62bf2ee7f99b62e0b192fcd271170da53223fe4a7382dd286d8a5884 days 11 hrs ago0xbf187f03931c2fdd17714b6ac668a349ac3a0d63  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22413.698018206100425 Ether0.00661264
0xc95c43fefdb7a50713bd680e66bbc9f3832664c899c9a5a10b0e158e05922cce4 days 13 hrs ago0xa2194be60df125cb30b09b50217ebd7f39c26bfb  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22411.64561746086737 Ether0.00585948
0x36af29255e7a8e44513e129f23dee882df64bce657cb32e33474f4442426e21b4 days 14 hrs ago0x38d8cb1a7e1b21e28017333e0ae88f724518e31c  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22412.612247482743335 Ether0.00585948
0x6f591e3882d60ac06de7be030a5841e19a5069f558b55b8a38c4fbc36bb15d0b4 days 14 hrs ago0x5121edf2ec49495c1871f1e6b6838304c49ea139  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.155826984826544 Ether0.00330632
0xf19bc0670db72bc7cfc5148171b442aa85dfc21211ffc6a128d1e9980f69db454 days 14 hrs ago0x95d484494379abb0a494a014745661296f9587da  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.154407869369979 Ether0.00495948
0x518d1e95518a9bc2b7deb8a9237da96ca1a5ae4343620d735f468ac1200a4ab34 days 14 hrs ago0x52ec4f6c2fb071e7650f04b8bf32b2c9ae245c4a  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.40367951370926 Ether0.001735818
0xf7e38f20d51e5a77a03bdd3f15fa9dc793cb039b2da5adf141658a335f9321764 days 15 hrs ago0xa26cb819b7fcd5def27674fbbf031a39b256c34c  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22411.813996016066355 Ether0.00495948
0x6bd0802f42d608aa7fbbe5b7f31ddbeb16298eda7a0eed3975240751d30a072d4 days 15 hrs ago0x2ffaeb519344a13cb3c9e895aa8fa6d46961fe14  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22413.607503607503607 Ether0.00248056658
0x79946e93e7ec0147e578be3e3b9c0f27c46e55cd5cd7104df862e36d211952b24 days 15 hrs ago0x1663bc059189a88fe6593e384d403e034e3f0df6  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.017851926385147 Ether0.002099647
0xf7b9668cbb4bff33d34320639a43e5e34c50a73f955e8ddd6c70c91640ca16af4 days 16 hrs ago0xded6a9fb7b65fe8579c08da0047b3f09e3b4fac3  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.053619302949061 Ether0.00293071658
0x6476e5bf1bb727312da46cc1942dffbf4a7aa061cf5416e9c2ec730753bd7d404 days 17 hrs ago0x5ecdd4060217173540a346c92315fb8f5d1ef6ab  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.16292739 Ether0.0027009
0x863e0504f8cb5302744c17951e4b24d4287ef3ce7f3b750ddfef699517451be64 days 19 hrs ago0x6b241ef2b850e1a8f11db98f393038aaa9ebda44  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.368444195108637 Ether0.00495948
0x552d7ddc353622cee3f26b69ec01fea5a540d205bdabd0ca02e03cd07b81c7eb4 days 20 hrs agocoinexchange.io  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.19108775 Ether0.0019948
0x2cc04c2f307176c186a2574a7d9b8b09234442075cf312c39c40867e2341e8b94 days 20 hrs ago0x69e3c173c2fda2103b9ed2ef408de480b0cc25d3  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.001582213438 Ether0.004091571
0xf468aeba0cf8a111b5a044e0f5afb429cd475674a6f7fe9f063a377e065a14474 days 21 hrs ago0x193f4205a884f9e8e7522e21be77150fb573756f  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22411.481115773882991 Ether0.00585948
0x0f42995e23fc9c0a8d12c18a8e75aab82e207a9a647cae987fe6bc95043e8c064 days 21 hrs ago0xea06468653f19efe6eb0abce3f985f783f2cbf5d  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.014875049583498 Ether0.00126
0x0793b4057d021d44274b890541528d22ccff9e784e7f0e6390002aaac98d72dd4 days 22 hrs ago0x0e9e29d94988958368489d8cac6eed87490c3ca3  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.01244961 Ether0.00378
0xd16b645664cf1428094150ffe68c1f0b5c38014b1a29a43464366b6af85d0bd94 days 23 hrs ago0x7edc019ff58eadf6b76fd2fd16981ca1509e93a3  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.077244461717839 Ether0.00585948
0xc98cc7eb27b9c05e8f0529ac613d4cff5f8defcc5653e3d281a3ce26395bc8a54 days 23 hrs agoBinance  IN   0xfc5772c279bb3a0bed4219c0de484deff3ed22410.15879417 Ether0.005868718
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 25 Internal Txns, Click here to View More View All
ParentTxHash Block Age From To Value
0x5a053acce82a3d0191598cc758e58e740e143acc8da5ba28e7db0025e4e1583247257974 days 5 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d1.327 Ether
0xb1b3ec990e48b5e51eb605003e65317e8ff84401f7741aaa1b89cd2a727533fc47252794 days 8 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.163 Ether
0x392c3d4bfa4521a32ff3f45819ab64aaeeadce417796aab963a45398b80cf88947252564 days 8 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.01 Ether
0xddc3e9adf6ee838a7d83366072d1db7eb8a80566ff4f5abc789588587eea3cd047250854 days 8 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.1 Ether
0xaee3615dd31db878ffc63c433051ce96d3fbba148aa33a3c93b944cc0546d43c47246684 days 10 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.1675730847158113 Ether
0x9682657ab62bf2ee7f99b62e0b192fcd271170da53223fe4a7382dd286d8a58847243704 days 11 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d3.6980182061004254 Ether
0xc95c43fefdb7a50713bd680e66bbc9f3832664c899c9a5a10b0e158e05922cce47239564 days 13 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d1.64561746086737 Ether
0x36af29255e7a8e44513e129f23dee882df64bce657cb32e33474f4442426e21b47238244 days 14 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d2.612247482743335 Ether
0x6f591e3882d60ac06de7be030a5841e19a5069f558b55b8a38c4fbc36bb15d0b47237994 days 14 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.1558269848265441 Ether
0xf19bc0670db72bc7cfc5148171b442aa85dfc21211ffc6a128d1e9980f69db4547237044 days 14 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.154407869369979 Ether
0x518d1e95518a9bc2b7deb8a9237da96ca1a5ae4343620d735f468ac1200a4ab347236814 days 14 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.4036795137092603 Ether
0xf7e38f20d51e5a77a03bdd3f15fa9dc793cb039b2da5adf141658a335f93217647236094 days 15 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d1.8139960160663553 Ether
0x6bd0802f42d608aa7fbbe5b7f31ddbeb16298eda7a0eed3975240751d30a072d47235974 days 15 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d3.6075036075036073 Ether
0x79946e93e7ec0147e578be3e3b9c0f27c46e55cd5cd7104df862e36d211952b247235144 days 15 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.0178519263851472 Ether
0xf7b9668cbb4bff33d34320639a43e5e34c50a73f955e8ddd6c70c91640ca16af47233594 days 16 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.053619302949061656 Ether
0x863e0504f8cb5302744c17951e4b24d4287ef3ce7f3b750ddfef699517451be647224404 days 19 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.36844419510863796 Ether
0x2cc04c2f307176c186a2574a7d9b8b09234442075cf312c39c40867e2341e8b947222644 days 20 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.001582213438 Ether
0xf468aeba0cf8a111b5a044e0f5afb429cd475674a6f7fe9f063a377e065a144747221724 days 21 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d1.4811157738829919 Ether
0xd16b645664cf1428094150ffe68c1f0b5c38014b1a29a43464366b6af85d0bd947216584 days 23 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.07724446171783911 Ether
0xc98cc7eb27b9c05e8f0529ac613d4cff5f8defcc5653e3d281a3ce26395bc8a547214934 days 23 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.15879417 Ether
0x05805299614a03596411fe57ab44cc7ddfefd53534ecfb9a6af4b2c06ada954347213975 days 20 mins ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.8268880610727829 Ether
0x30de57ae87976692e43cf4a6d932aff0351a6b0b231b71bb5bf65d06002c275b47213055 days 46 mins ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.5881071661947288 Ether
0x837929225c9f5cfd8c3978b49ef8da2cde3ff6c0cfac28c6b5b10a88fa87c31a47212625 days 57 mins ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.09251803244984325 Ether
0xe50eb15a856cfa47288e2738bd51c6d0bb44c4941bd46991bb567dc1f2da2c6947211195 days 1 hr ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.3228066663330164 Ether
0x55e0e37f5d72e0ad92088adc661361f0d8db261b4631b38cd1e428203405ec6f47207215 days 3 hrs ago0xfc5772c279bb3a0bed4219c0de484deff3ed22410x42fe7f13fb77700d9105854b559bc865f916f21d0.15542053086024946 Ether
[ Download CSV Export  ] 
Contract Source Code Verified
Contract Name: Crowdsale
Compiler Version: v0.4.18+commit.9cf6e910
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.17;
/**
 * @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 constant returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}
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) onlyOwner public {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }
}
/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || 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 SafeBasicToken is ERC20Basic {
  using SafeMath for uint256;
  mapping(address => uint256) balances;
  modifier onlyPayloadSize(uint size) {
     assert(msg.data.length >= size + 4);
     _;
  }
  /**
  * @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) onlyPayloadSize(2 * 32) public returns (bool) {
    require(_to != address(0));
    // 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 constant 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 constant 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 SafeStandardToken is ERC20, SafeBasicToken {
  mapping (address => mapping (address => uint256)) 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));
    uint256 _allowance = allowed[_from][msg.sender];
    // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
    // require (_value <= _allowance);
    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = _allowance.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 constant returns (uint256 remaining) {
    return allowed[_owner][_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
   */
  function increaseApproval (address _spender, uint _addedValue) public
    returns (bool success) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }
  function decreaseApproval (address _spender, uint _subtractedValue) public
    returns (bool success) {
    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;
  }
}
contract LendConnect is SafeStandardToken{
  string public constant name = "LendConnect Token";
  string public constant symbol = "LCT";
  uint256 public constant decimals = 18;
  uint256 public constant INITIAL_SUPPLY = 6500000 * (10 ** uint256(decimals));
  function LendConnect(address _ownerAddress) public {
    totalSupply = INITIAL_SUPPLY;
    balances[_ownerAddress] = INITIAL_SUPPLY;
  }
}
contract Crowdsale is Ownable {
  using SafeMath for uint256;
  // The token being sold
  LendConnect public token;
  // start and end timestamps where investments are allowed (both inclusive
  
  uint256 public start_time = 1511377200;//11/22/2017 @ 7:00pm (UTC) or 8:00pm (CET)
  uint256 public phase_1_Time = 1511809200;//11/27/2017 @ 7:00pm (UTC) or 8:00pm (CET)
  uint256 public phase_2_Time = 1512241200;//12/02/2017 @ 7:00pm (UTC) or 8:00pm (CET)
  uint256 public phase_3_Time = 1512673200;//12/07/2017 @ 7:00pm (UTC) or 8:00pm (CET)
  uint256 public phase_4_Time = 1513105200;//12/12/2017 @ 7:00pm (UTC) or 8:00pm (CET)
  uint256 public end_Time = 1513278000;//12/14/2017 @ 7:00pm (UTC) or 8:00pm (CET)
  uint256 public phase_1_remaining_tokens  = 1000000 * (10 ** uint256(18));
  uint256 public phase_2_remaining_tokens  = 1000000 * (10 ** uint256(18));
  uint256 public phase_3_remaining_tokens  = 1000000 * (10 ** uint256(18));
  uint256 public phase_4_remaining_tokens  = 1000000 * (10 ** uint256(18));
  uint256 public phase_5_remaining_tokens  = 1000000 * (10 ** uint256(18));
  mapping(address => uint256) phase_1_balances;
  mapping(address => uint256) phase_2_balances;
  mapping(address => uint256) phase_3_balances;
  mapping(address => uint256) phase_4_balances;
  mapping(address => uint256) phase_5_balances;
  
  
  // address where funds are collected
  address public wallet;
  // how many token units a buyer gets per wei
  uint256 public rate = 730;
  // 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);
  // rate change event
  event RateChanged(address indexed owner, uint256 old_rate, uint256 new_rate);
  
  // constructor
  function Crowdsale(address tokenContractAddress, address _walletAddress) public{
    wallet = _walletAddress;
    token = LendConnect(tokenContractAddress);
  }
  // fallback function can be used to buy tokens
  function () payable public{
    buyTokens(msg.sender);
  }
  // low level token purchase function
  function buyTokens(address beneficiary) public payable {
    require(beneficiary != 0x0);
    require(validPurchase());
    uint256 weiAmount = msg.value;
    // calculate token amount to be created
    uint256 tokens = weiAmount.mul(rate);
    // Check is there are enough token available for current phase and per person  
    require(isTokenAvailable(tokens));
    // update state
    weiRaised = weiRaised.add(weiAmount);
    token.transfer(beneficiary, tokens);
    //decrease phase supply and add user phase balance
    updatePhaseSupplyAndBalance(tokens);
    TokenPurchase(msg.sender, beneficiary, weiAmount, tokens);
    forwardFunds();
  }
  // check token availibility for current phase and max allowed token balance
  function isTokenAvailable(uint256 _tokens) internal constant returns (bool){
    uint256 current_time = now;
    uint256 total_expected_tokens = 0;
    if(current_time > start_time && current_time < phase_1_Time){
      total_expected_tokens = _tokens + phase_1_balances[msg.sender];
      return total_expected_tokens <= 10000 * (10 ** uint256(18)) &&
        _tokens <= phase_1_remaining_tokens;
    }
    else if(current_time > phase_1_Time && current_time < phase_2_Time){
      total_expected_tokens = _tokens + phase_2_balances[msg.sender];
      return total_expected_tokens <= 2000 * (10 ** uint256(18)) &&
        _tokens <= phase_2_remaining_tokens;
    }
    else if(current_time > phase_2_Time && current_time < phase_3_Time){
      total_expected_tokens = _tokens + phase_3_balances[msg.sender];
      return total_expected_tokens <= 2000 * (10 ** uint256(18)) &&
        _tokens <= phase_3_remaining_tokens;
    }
    else if(current_time > phase_3_Time && current_time < phase_4_Time){
      total_expected_tokens = _tokens + phase_4_balances[msg.sender];
      return total_expected_tokens <= 3500 * (10 ** uint256(18)) &&
        _tokens <= phase_4_remaining_tokens;
    }
    else{
      total_expected_tokens = _tokens + phase_5_balances[msg.sender];
      return total_expected_tokens <= 3500 * (10 ** uint256(18)) &&
        _tokens <= phase_5_remaining_tokens;
    }
  }
  // decrease phase supply and add user phase balance
  function updatePhaseSupplyAndBalance(uint256 _tokens) internal {
    uint256 current_time = now;
    if(current_time > start_time && current_time < phase_1_Time){
      phase_1_balances[msg.sender] = phase_1_balances[msg.sender].add(_tokens);
      phase_1_remaining_tokens = phase_1_remaining_tokens - _tokens;
    }
    else if(current_time > phase_1_Time && current_time < phase_2_Time){
      phase_2_balances[msg.sender] = phase_2_balances[msg.sender].add(_tokens);
      phase_2_remaining_tokens = phase_2_remaining_tokens - _tokens;
    }
    else if(current_time > phase_2_Time && current_time < phase_3_Time){
      phase_3_balances[msg.sender] = phase_3_balances[msg.sender].add(_tokens);
      phase_3_remaining_tokens = phase_3_remaining_tokens - _tokens;
    }
    else if(current_time > phase_3_Time && current_time < phase_4_Time){
      phase_4_balances[msg.sender] = phase_4_balances[msg.sender].add(_tokens);
      phase_4_remaining_tokens = phase_4_remaining_tokens - _tokens;
    }
    else{
      phase_5_balances[msg.sender] = phase_5_balances[msg.sender].add(_tokens);
      phase_5_remaining_tokens = phase_5_remaining_tokens - _tokens;
    }
  }
  // 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 constant returns (bool) {
    bool withinPeriod = now >= start_time && now <= end_Time;
    bool nonZeroPurchase = msg.value != 0;
    return withinPeriod && nonZeroPurchase;
  }
  // @return true if crowdsale event has ended
  function hasEnded() public constant returns (bool) {
    return now > end_Time;
  }
  // function to transfer token back to owner
  function transferBack(uint256 tokens) onlyOwner public returns (bool){
    token.transfer(owner, tokens);
    return true;
  }
  // function to change rate
  function changeRate(uint256 _rate) onlyOwner public returns (bool){
    RateChanged(msg.sender, rate, _rate);
    rate = _rate;
    return true;
  }
  function tokenBalance() constant public returns (uint256){
    return token.balanceOf(this);
  }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"phase_5_remaining_tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"end_Time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"phase_4_remaining_tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"phase_2_Time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rate","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":true,"inputs":[],"name":"phase_1_remaining_tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_rate","type":"uint256"}],"name":"changeRate","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"start_time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"phase_3_Time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"phase_2_remaining_tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"phase_4_Time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokens","type":"uint256"}],"name":"transferBack","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"phase_1_Time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"phase_3_remaining_tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"tokenContractAddress","type":"address"},{"name":"_walletAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"old_rate","type":"uint256"},{"indexed":false,"name":"new_rate","type":"uint256"}],"name":"RateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052635a15c930600255635a1c60b0600355635a22f830600455635a298fb0600555635a302730600655635a32ca306007556012600a0a620f4240026008556012600a0a620f4240026009556012600a0a620f424002600a556012600a0a620f424002600b556012600a0a620f424002600c556102da601355341561008657600080fd5b60405160408061153a83398101604052808051906020019091908051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506113bc8061017e6000396000f300606060405260043610610128576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806303138b3114610133578063032b34001461015c5780631542b36514610185578063278c3030146101ae5780632c4e722e146101d75780634042b66f1461020057806344605ea014610229578063521eb2731461025257806374e7493b146102a7578063834ee417146102e25780638da5cb5b1461030b57806392b4ddeb146103605780639e1a4d1914610389578063b6693f80146103b2578063dea5de80146103db578063eae7236f14610404578063ec8ac4d81461043f578063ecb70fb71461046d578063f2fde38b1461049a578063f7892887146104d3578063fc0c546a146104fc578063ff9e394814610551575b6101313361057a565b005b341561013e57600080fd5b61014661076b565b6040518082815260200191505060405180910390f35b341561016757600080fd5b61016f610771565b6040518082815260200191505060405180910390f35b341561019057600080fd5b610198610777565b6040518082815260200191505060405180910390f35b34156101b957600080fd5b6101c161077d565b6040518082815260200191505060405180910390f35b34156101e257600080fd5b6101ea610783565b6040518082815260200191505060405180910390f35b341561020b57600080fd5b610213610789565b6040518082815260200191505060405180910390f35b341561023457600080fd5b61023c61078f565b6040518082815260200191505060405180910390f35b341561025d57600080fd5b610265610795565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156102b257600080fd5b6102c860048080359060200190919050506107bb565b604051808215151515815260200191505060405180910390f35b34156102ed57600080fd5b6102f5610880565b6040518082815260200191505060405180910390f35b341561031657600080fd5b61031e610886565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561036b57600080fd5b6103736108ab565b6040518082815260200191505060405180910390f35b341561039457600080fd5b61039c6108b1565b6040518082815260200191505060405180910390f35b34156103bd57600080fd5b6103c5610998565b6040518082815260200191505060405180910390f35b34156103e657600080fd5b6103ee61099e565b6040518082815260200191505060405180910390f35b341561040f57600080fd5b61042560048080359060200190919050506109a4565b604051808215151515815260200191505060405180910390f35b61046b600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061057a565b005b341561047857600080fd5b610480610b14565b604051808215151515815260200191505060405180910390f35b34156104a557600080fd5b6104d1600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b20565b005b34156104de57600080fd5b6104e6610c75565b6040518082815260200191505060405180910390f35b341561050757600080fd5b61050f610c7b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561055c57600080fd5b610564610ca1565b6040518082815260200191505060405180910390f35b60008060008373ffffffffffffffffffffffffffffffffffffffff16141515156105a357600080fd5b6105ab610ca7565b15156105b657600080fd5b3491506105ce60135483610cda90919063ffffffff16565b90506105d981610d0d565b15156105e457600080fd5b6105f982601454610f7190919063ffffffff16565b601481905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15156106cc57600080fd5b6102c65a03f115156106dd57600080fd5b50505060405180519050506106f181610f8f565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a361076661132c565b505050565b600c5481565b60075481565b600b5481565b60045481565b60135481565b60145481565b60085481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561081857600080fd5b3373ffffffffffffffffffffffffffffffffffffffff167fc42fd368234734e114fdd21ad5a5625751956838be3a0c80912971e23ed76dc860135484604051808381526020018281526020019250505060405180910390a28160138190555060019050919050565b60025481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561097857600080fd5b6102c65a03f1151561098957600080fd5b50505060405180519050905090565b60095481565b60065481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a0157600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610aef57600080fd5b6102c65a03f11515610b0057600080fd5b505050604051805190505060019050919050565b60006007544211905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b7b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610bb757600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60035481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b60008060006002544210158015610cc057506007544211155b915060003414159050818015610cd35750805b9250505090565b60008082840290506000841480610cfb5750828482811515610cf857fe5b04145b1515610d0357fe5b8091505092915050565b60008060004291506000905060025482118015610d2b575060035482105b15610d9557600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054840190506012600a0a612710028111158015610d8e57506008548411155b9250610f6a565b60035482118015610da7575060045482105b15610e1157600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054840190506012600a0a6107d0028111158015610e0a57506009548411155b9250610f6a565b60045482118015610e23575060055482105b15610e8d57600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054840190506012600a0a6107d0028111158015610e865750600a548411155b9250610f6a565b60055482118015610e9f575060065482105b15610f0957601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054840190506012600a0a610dac028111158015610f025750600b548411155b9250610f6a565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054840190506012600a0a610dac028111158015610f675750600c548411155b92505b5050919050565b6000808284019050838110151515610f8557fe5b8091505092915050565b600042905060025481118015610fa6575060035481105b1561105057610ffd82600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f7190919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160085403600881905550611328565b60035481118015611062575060045481105b1561110c576110b982600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f7190919063ffffffff16565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160095403600981905550611327565b6004548111801561111e575060055481105b156111c85761117582600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f7190919063ffffffff16565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600a5403600a81905550611326565b600554811180156111da575060065481105b156112845761123182601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f7190919063ffffffff16565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600b5403600b81905550611325565b6112d682601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f7190919063ffffffff16565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600c5403600c819055505b5b5b5b5050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050151561138e57600080fd5b5600a165627a7a7230582087214cc2093cf310b234cb03ccb22f179a77af6b70d7174fbaa8e64fa948be33002900000000000000000000000005c7065d644096a4e4c3fe24af86e36de021074b00000000000000000000000042fe7f13fb77700d9105854b559bc865f916f21d

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

-----Decoded View---------------
Found 2 constructor arguments :
Arg [0] : 00000000000000000000000005c7065d644096a4e4c3fe24af86e36de021074b
Arg [1] : 00000000000000000000000042fe7f13fb77700d9105854b559bc865f916f21d


   Swarm Source:
bzzr://87214cc2093cf310b234cb03ccb22f179a77af6b70d7174fbaa8e64fa948be33

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.