ETH Price: $2,821.57 (+2.10%)
Gas: 0.95 Gwei

Contract

0xaa9178361212BCE41B23088becc18C31ABF9ecfD
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Send51731732018-02-28 20:02:512552 days ago1519848171IN
0xaa917836...1ABF9ecfD
0 ETH0.000749620
Send51731632018-02-28 19:59:122552 days ago1519847952IN
0xaa917836...1ABF9ecfD
0 ETH0.000749620
Send51731512018-02-28 19:55:472552 days ago1519847747IN
0xaa917836...1ABF9ecfD
0 ETH0.0007508820
Send51731412018-02-28 19:53:432552 days ago1519847623IN
0xaa917836...1ABF9ecfD
0 ETH0.0022780820

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x11E31406...a84920770
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
nCryptToken

Compiler Version
v0.4.21-nightly.2018.3.1+commit.cf6720ea

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.13;

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

/**
 * @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 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 constant returns (uint256 balance) {
    return balances[_owner];
  }

}

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

}


/**
 * @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 InvestorsFeature is Ownable, StandardToken {
    using SafeMath for uint;
    
    address[] public investors;
    mapping(address => bool) isInvestor;
    function deposit(address investor, uint) internal {
        if(isInvestor[investor] == false) {
            investors.push(investor);
            isInvestor[investor] = true;
        }
    }
    
    function sendp(address addr, uint amount) internal {
        require(addr != address(0));
        require(amount > 0);
        deposit(addr, amount);
        
        // SafeMath.sub will throw if there is not enough balance.
        balances[this] = balances[this].sub(amount);
        balances[addr] = balances[addr].add(amount);
        Transfer(this, addr, amount);
    }
    


}

contract nCryptToken is Ownable, StandardToken, InvestorsFeature  {
    

  string public constant name = "nCryptToken";
  string public constant symbol = "NCT";
  uint8 public constant decimals = 18;
  
  uint256 public constant INITIAL_SUPPLY = (10 * (10**6)) * (10 ** uint256(decimals));
  
  
  
  function nCryptToken() public {
    totalSupply = INITIAL_SUPPLY;
    balances[this] = INITIAL_SUPPLY;
    Transfer(address(0), this, INITIAL_SUPPLY);
  }
  

  
  function send(address addr, uint amount) public onlyOwner {
      sendp(addr, amount);
  }

  function moneyBack(address addr) public onlyOwner {
      require(addr != 0x0);
      addr.transfer(this.balance);
  }
  
  function burnRemainder(uint) public onlyOwner {
      uint value = balances[this];
      totalSupply = totalSupply.sub(value);
      balances[this] = 0;
  }
 
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"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":"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":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"investors","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","type":"bool"}],"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":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"","type":"uint256"}],"name":"burnRemainder","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":"addr","type":"address"},{"name":"amount","type":"uint256"}],"name":"send","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"moneyBack","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"},{"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":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

Deployed Bytecode

0x6060604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610100578063095ea7b31461018a57806318160ddd146101c057806323b872dd146101e55780632ff2e9dc1461020d578063313ce567146102205780633feb5f2b14610249578063661884631461027b57806370a082311461029d5780638da5cb5b146102bc57806395d89b41146102cf578063a19c1f01146102e2578063a9059cbb146102fa578063d0679d341461031c578063d73dd6231461033e578063dd62ed3e14610360578063e0db874d14610385578063f2fde38b146103a4575b600080fd5b341561010b57600080fd5b6101136103c3565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014f578082015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019557600080fd5b6101ac600160a060020a03600435166024356103fa565b604051901515815260200160405180910390f35b34156101cb57600080fd5b6101d3610466565b60405190815260200160405180910390f35b34156101f057600080fd5b6101ac600160a060020a036004358116906024351660443561046c565b341561021857600080fd5b6101d36105ee565b341561022b57600080fd5b6102336105fd565b60405160ff909116815260200160405180910390f35b341561025457600080fd5b61025f600435610602565b604051600160a060020a03909116815260200160405180910390f35b341561028657600080fd5b6101ac600160a060020a036004351660243561062a565b34156102a857600080fd5b6101d3600160a060020a0360043516610724565b34156102c757600080fd5b61025f61073f565b34156102da57600080fd5b61011361074e565b34156102ed57600080fd5b6102f8600435610785565b005b341561030557600080fd5b6101ac600160a060020a03600435166024356107ee565b341561032757600080fd5b6102f8600160a060020a03600435166024356108e9565b341561034957600080fd5b6101ac600160a060020a0360043516602435610912565b341561036b57600080fd5b6101d3600160a060020a03600435811690602435166109b6565b341561039057600080fd5b6102f8600160a060020a03600435166109e1565b34156103af57600080fd5b6102f8600160a060020a0360043516610a51565b60408051908101604052600b81527f6e4372797074546f6b656e000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260036020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60015481565b6000600160a060020a038316151561048357600080fd5b600160a060020a0384166000908152600260205260409020548211156104a857600080fd5b600160a060020a03808516600090815260036020908152604080832033909416835292905220548211156104db57600080fd5b600160a060020a038416600090815260026020526040902054610504908363ffffffff610aec16565b600160a060020a038086166000908152600260205260408082209390935590851681522054610539908363ffffffff610afe16565b600160a060020a03808516600090815260026020908152604080832094909455878316825260038152838220339093168252919091522054610581908363ffffffff610aec16565b600160a060020a03808616600081815260036020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b6a084595161401484a00000081565b601281565b600480548290811061061057fe5b600091825260209091200154600160a060020a0316905081565b600160a060020a0333811660009081526003602090815260408083209386168352929052908120548083111561068757600160a060020a0333811660009081526003602090815260408083209388168352929052908120556106be565b610697818463ffffffff610aec16565b600160a060020a033381166000908152600360209081526040808320938916835292905220555b600160a060020a0333811660008181526003602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526002602052604090205490565b600054600160a060020a031681565b60408051908101604052600381527f4e43540000000000000000000000000000000000000000000000000000000000602082015281565b6000805433600160a060020a039081169116146107a157600080fd5b50600160a060020a0330166000908152600260205260409020546001546107ce908263ffffffff610aec16565b6001555050600160a060020a033016600090815260026020526040812055565b6000600160a060020a038316151561080557600080fd5b600160a060020a03331660009081526002602052604090205482111561082a57600080fd5b600160a060020a033316600090815260026020526040902054610853908363ffffffff610aec16565b600160a060020a033381166000908152600260205260408082209390935590851681522054610888908363ffffffff610afe16565b600160a060020a0380851660008181526002602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60005433600160a060020a0390811691161461090457600080fd5b61090e8282610b14565b5050565b600160a060020a03338116600090815260036020908152604080832093861683529290529081205461094a908363ffffffff610afe16565b600160a060020a0333811660008181526003602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60005433600160a060020a039081169116146109fc57600080fd5b600160a060020a0381161515610a1157600080fd5b80600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f193505050501515610a4e57600080fd5b50565b60005433600160a060020a03908116911614610a6c57600080fd5b600160a060020a0381161515610a8157600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610af857fe5b50900390565b600082820183811015610b0d57fe5b9392505050565b600160a060020a0382161515610b2957600080fd5b60008111610b3657600080fd5b610b408282610bfa565b600160a060020a033016600090815260026020526040902054610b69908263ffffffff610aec16565b600160a060020a033081166000908152600260205260408082209390935590841681522054610b9e908263ffffffff610afe16565b600160a060020a0380841660008181526002602052604090819020939093559130909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a35050565b600160a060020a03821660009081526005602052604090205460ff16151561090e576004805460018101610c2e8382610c80565b5060009182526020808320919091018054600160a060020a03861673ffffffffffffffffffffffffffffffffffffffff19909116811790915582526005905260409020805460ff191660011790555050565b815481835581811511610ca457600083815260209020610ca4918101908301610ca9565b505050565b610cc791905b80821115610cc35760008155600101610caf565b5090565b905600a165627a7a72305820030ac694a91873a455b00109d16210bd6d9200d67a8a1927c7b52f354d2c3ebe0029

Swarm Source

bzzr://030ac694a91873a455b00109d16210bd6d9200d67a8a1927c7b52f354d2c3ebe

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  ]

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.