Source Code
Latest 25 from a total of 57 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 4669315 | 3022 days ago | IN | 0.1 ETH | 0.00062422 | ||||
| Transfer | 4536200 | 3044 days ago | IN | 0.16 ETH | 0.00098891 | ||||
| Transfer | 4534622 | 3044 days ago | IN | 2 ETH | 0.00009418 | ||||
| Transfer | 4534604 | 3044 days ago | IN | 1.2 ETH | 0.00004709 | ||||
| Transfer | 4524586 | 3045 days ago | IN | 0.087118 ETH | 0.00130391 | ||||
| Transfer | 4522066 | 3046 days ago | IN | 1 ETH | 0.00130391 | ||||
| Transfer | 4520357 | 3046 days ago | IN | 0.35037126 ETH | 0.00065195 | ||||
| Transfer | 4509813 | 3048 days ago | IN | 0.45 ETH | 0.00130391 | ||||
| Transfer | 4509620 | 3048 days ago | IN | 0.5 ETH | 0.00130391 | ||||
| Transfer | 4509333 | 3048 days ago | IN | 0.50864881 ETH | 0.00130391 | ||||
| Transfer | 4508127 | 3048 days ago | IN | 1 ETH | 0.00211109 | ||||
| Transfer | 4501302 | 3049 days ago | IN | 0.5 ETH | 0.00130391 | ||||
| Transfer | 4498779 | 3050 days ago | IN | 0.327 ETH | 0.00130391 | ||||
| Transfer | 4495449 | 3050 days ago | IN | 0.01 ETH | 0.000441 | ||||
| Transfer | 4490786 | 3051 days ago | IN | 0.009 ETH | 0.00023545 | ||||
| Transfer | 4483239 | 3052 days ago | IN | 0.5 ETH | 0.00130391 | ||||
| Transfer | 4477368 | 3053 days ago | IN | 0.027 ETH | 0.00014127 | ||||
| Transfer | 4477351 | 3053 days ago | IN | 0.027 ETH | 0.00018627 | ||||
| Transfer | 4472690 | 3054 days ago | IN | 0.13 ETH | 0.00098891 | ||||
| Transfer | 4471585 | 3054 days ago | IN | 0.0338032 ETH | 0.00124182 | ||||
| Transfer | 4470393 | 3054 days ago | IN | 0.015 ETH | 0.00105 | ||||
| Transfer | 4464953 | 3055 days ago | IN | 0.05 ETH | 0.0012294 | ||||
| Transfer | 4461714 | 3055 days ago | IN | 1 ETH | 0.00130391 | ||||
| Transfer | 4461577 | 3056 days ago | IN | 0.1566 ETH | 0.0000062 | ||||
| Transfer | 4459980 | 3056 days ago | IN | 0.01270789 ETH | 0.00130391 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 4669315 | 3022 days ago | 0.1 ETH | ||||
| Transfer | 4536200 | 3044 days ago | 0.16 ETH | ||||
| Transfer | 4534622 | 3044 days ago | 2 ETH | ||||
| Transfer | 4534604 | 3044 days ago | 1.2 ETH | ||||
| Transfer | 4524586 | 3045 days ago | 0.087118 ETH | ||||
| Transfer | 4522066 | 3046 days ago | 1 ETH | ||||
| Transfer | 4520357 | 3046 days ago | 0.35037126 ETH | ||||
| Transfer | 4509813 | 3048 days ago | 0.45 ETH | ||||
| Transfer | 4509620 | 3048 days ago | 0.5 ETH | ||||
| Transfer | 4509333 | 3048 days ago | 0.50864881 ETH | ||||
| Transfer | 4508127 | 3048 days ago | 1 ETH | ||||
| Transfer | 4501302 | 3049 days ago | 0.5 ETH | ||||
| Transfer | 4498779 | 3050 days ago | 0.327 ETH | ||||
| Transfer | 4490786 | 3051 days ago | 0.009 ETH | ||||
| Transfer | 4483239 | 3052 days ago | 0.5 ETH | ||||
| Transfer | 4477368 | 3053 days ago | 0.027 ETH | ||||
| Transfer | 4477351 | 3053 days ago | 0.027 ETH | ||||
| Transfer | 4472690 | 3054 days ago | 0.13 ETH | ||||
| Transfer | 4471585 | 3054 days ago | 0.0338032 ETH | ||||
| Transfer | 4464953 | 3055 days ago | 0.05 ETH | ||||
| Transfer | 4461714 | 3055 days ago | 1 ETH | ||||
| Transfer | 4461577 | 3056 days ago | 0.1566 ETH | ||||
| Transfer | 4459980 | 3056 days ago | 0.01270789 ETH | ||||
| Transfer | 4459746 | 3056 days ago | 0.05 ETH | ||||
| Transfer | 4459129 | 3056 days ago | 0.17 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Crowdsale
Compiler Version
v0.4.15+commit.bbb8e64f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2017-10-16
*/
pragma solidity ^0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant 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 constant returns (uint256) {
assert(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
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 {
require(newOwner != address(0));
owner = newOwner;
}
}
interface Token {
function transfer(address _to, uint256 _value) returns (bool);
function balanceOf(address _owner) constant returns (uint256 balance);
}
contract Crowdsale is Ownable {
using SafeMath for uint256;
Token token;
uint256 public constant RATE = 1000; // Number of tokens per Ether
uint256 public constant CAP = 10000; // Cap in Ether
uint256 public constant START = 1510063200; // Nov 7, 2017 @ 14:00 GMT
uint256 public DAYS = 30; // 30 Days
uint256 public raisedAmount = 0;
event BoughtTokens(address indexed to, uint256 value);
modifier whenSaleIsActive() {
// Check how much Ether has been raised
assert(!goalReached());
// Check if sale is active
assert(isActive());
_;
}
function Crowdsale(address _tokenAddr) {
require(_tokenAddr != 0);
token = Token(_tokenAddr);
}
function isActive() constant returns (bool) {
return (now <= START.add(DAYS * 1 days));
}
function goalReached() constant returns (bool) {
return (raisedAmount >= CAP * 1 ether);
}
function () payable {
buyTokens();
}
/**
* @dev function that sells available tokens
*/
function buyTokens() payable whenSaleIsActive {
// Calculate tokens to sell
uint256 weiAmount = msg.value;
uint256 tokens = weiAmount.mul(RATE);
uint256 bonus = 0;
// Calculate Bonus
if (now <= START.add(7 days)) {
bonus = tokens.mul(30).div(100);
} else if (now <= START.add(14 days)) {
bonus = tokens.mul(25).div(100);
} else if (now <= START.add(21 days)) {
bonus = tokens.mul(20).div(100);
} else if (now <= START.add(30 days)) {
bonus = tokens.mul(10).div(100);
}
tokens = tokens.add(bonus);
BoughtTokens(msg.sender, tokens);
// Send tokens to buyer
token.transfer(msg.sender, tokens);
// Send money to owner
owner.transfer(msg.value);
}
/**
* @dev returns the number of tokens allocated to this contract
*/
function tokensAvailable() constant returns (uint256) {
return token.balanceOf(this);
}
/**
* @notice Terminate contract and refund to owner
*/
function destroy() onlyOwner {
// Transfer tokens back to owner
uint256 balance = token.balanceOf(this);
token.transfer(owner, balance);
// There should be no ether in the contract but just in case
selfdestruct(owner);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[],"name":"isActive","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokensAvailable","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"RATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"goalReached","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"destroy","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"START","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"DAYS","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"raisedAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"buyTokens","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"CAP","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_tokenAddr","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"BoughtTokens","type":"event"}]Contract Creation Code
6060604052601e6002556000600355341561001957600080fd5b60405160208061082c833981016040528080519150505b5b60008054600160a060020a03191633600160a060020a03161790555b600160a060020a038116151561006257600080fd5b60018054600160a060020a031916600160a060020a0383161790555b505b61079d8061008f6000396000f3006060604052361561009e5763ffffffff60e060020a60003504166322f3e2d481146100aa57806360659a92146100d1578063664e9704146100f65780637d3d65221461011b57806383197ef0146101425780638da5cb5b14610157578063ba9a061a14610186578063c549e6b9146101ab578063c59ee1dc146101d0578063d0febe4c1461009e578063ec81b483146101ff578063f2fde38b14610224575b5b6100a7610245565b5b005b34156100b557600080fd5b6100bd61049f565b604051901515815260200160405180910390f35b34156100dc57600080fd5b6100e46104c8565b60405190815260200160405180910390f35b341561010157600080fd5b6100e4610543565b60405190815260200160405180910390f35b341561012657600080fd5b6100bd610549565b604051901515815260200160405180910390f35b341561014d57600080fd5b6100a761055e565b005b341561016257600080fd5b61016a610686565b604051600160a060020a03909116815260200160405180910390f35b341561019157600080fd5b6100e4610695565b60405190815260200160405180910390f35b34156101b657600080fd5b6100e461069d565b60405190815260200160405180910390f35b34156101db57600080fd5b6100e46106a3565b60405190815260200160405180910390f35b6100a7610245565b005b341561020a57600080fd5b6100e46106a9565b60405190815260200160405180910390f35b341561022f57600080fd5b6100a7600160a060020a03600435166106af565b005b6000806000610252610549565b1561025957fe5b61026161049f565b151561026957fe5b34925061027e836103e863ffffffff61070c16565b91506000905061029b635a01bc6062093a8063ffffffff61073b16565b42116102ca576102c360646102b784601e63ffffffff61070c16565b9063ffffffff61075516565b9050610398565b6102e1635a01bc606212750063ffffffff61073b16565b4211610310576102c360646102b784601963ffffffff61070c16565b9063ffffffff61075516565b9050610398565b610327635a01bc60621baf8063ffffffff61073b16565b4211610356576102c360646102b784601463ffffffff61070c16565b9063ffffffff61075516565b9050610398565b61036d635a01bc6062278d0063ffffffff61073b16565b42116103985761039560646102b784600a63ffffffff61070c16565b9063ffffffff61075516565b90505b5b5b5b6103ab828263ffffffff61073b16565b915033600160a060020a03167f61b2357f75eed32a19939598e4c7563879bacd78e9d957c31f0f9f70a3fd14a08360405190815260200160405180910390a2600154600160a060020a031663a9059cbb338460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561044957600080fd5b6102c65a03f1151561045a57600080fd5b50505060405180515050600054600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561049857600080fd5b5b5b505050565b60006104bf6002546201518002635a01bc6061073b90919063ffffffff16565b42111590505b90565b600154600090600160a060020a03166370a0823130836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561052357600080fd5b6102c65a03f1151561053457600080fd5b50505060405180519150505b90565b6103e881565b60035469021e19e0c9bab24000009010155b90565b6000805433600160a060020a0390811691161461057a57600080fd5b600154600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156105d357600080fd5b6102c65a03f115156105e457600080fd5b505050604051805160015460008054929450600160a060020a03918216935063a9059cbb929091169084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561065957600080fd5b6102c65a03f1151561066a57600080fd5b50505060405180515050600054600160a060020a0316ff5b5b50565b600054600160a060020a031681565b635a01bc6081565b60025481565b60035481565b61271081565b60005433600160a060020a039081169116146106ca57600080fd5b600160a060020a03811615156106df57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b6000828202831580610728575082848281151561072557fe5b04145b151561073057fe5b8091505b5092915050565b60008282018381101561073057fe5b8091505b5092915050565b600080828481151561076357fe5b0490508091505b50929150505600a165627a7a72305820c16de8013bb9c860e3a1bef95d0d9e808ecfe33684269a1f570be3708713c0ac002900000000000000000000000045321004790a4dae7ba19217a10574d55739efc7
Deployed Bytecode
0x6060604052361561009e5763ffffffff60e060020a60003504166322f3e2d481146100aa57806360659a92146100d1578063664e9704146100f65780637d3d65221461011b57806383197ef0146101425780638da5cb5b14610157578063ba9a061a14610186578063c549e6b9146101ab578063c59ee1dc146101d0578063d0febe4c1461009e578063ec81b483146101ff578063f2fde38b14610224575b5b6100a7610245565b5b005b34156100b557600080fd5b6100bd61049f565b604051901515815260200160405180910390f35b34156100dc57600080fd5b6100e46104c8565b60405190815260200160405180910390f35b341561010157600080fd5b6100e4610543565b60405190815260200160405180910390f35b341561012657600080fd5b6100bd610549565b604051901515815260200160405180910390f35b341561014d57600080fd5b6100a761055e565b005b341561016257600080fd5b61016a610686565b604051600160a060020a03909116815260200160405180910390f35b341561019157600080fd5b6100e4610695565b60405190815260200160405180910390f35b34156101b657600080fd5b6100e461069d565b60405190815260200160405180910390f35b34156101db57600080fd5b6100e46106a3565b60405190815260200160405180910390f35b6100a7610245565b005b341561020a57600080fd5b6100e46106a9565b60405190815260200160405180910390f35b341561022f57600080fd5b6100a7600160a060020a03600435166106af565b005b6000806000610252610549565b1561025957fe5b61026161049f565b151561026957fe5b34925061027e836103e863ffffffff61070c16565b91506000905061029b635a01bc6062093a8063ffffffff61073b16565b42116102ca576102c360646102b784601e63ffffffff61070c16565b9063ffffffff61075516565b9050610398565b6102e1635a01bc606212750063ffffffff61073b16565b4211610310576102c360646102b784601963ffffffff61070c16565b9063ffffffff61075516565b9050610398565b610327635a01bc60621baf8063ffffffff61073b16565b4211610356576102c360646102b784601463ffffffff61070c16565b9063ffffffff61075516565b9050610398565b61036d635a01bc6062278d0063ffffffff61073b16565b42116103985761039560646102b784600a63ffffffff61070c16565b9063ffffffff61075516565b90505b5b5b5b6103ab828263ffffffff61073b16565b915033600160a060020a03167f61b2357f75eed32a19939598e4c7563879bacd78e9d957c31f0f9f70a3fd14a08360405190815260200160405180910390a2600154600160a060020a031663a9059cbb338460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561044957600080fd5b6102c65a03f1151561045a57600080fd5b50505060405180515050600054600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561049857600080fd5b5b5b505050565b60006104bf6002546201518002635a01bc6061073b90919063ffffffff16565b42111590505b90565b600154600090600160a060020a03166370a0823130836040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561052357600080fd5b6102c65a03f1151561053457600080fd5b50505060405180519150505b90565b6103e881565b60035469021e19e0c9bab24000009010155b90565b6000805433600160a060020a0390811691161461057a57600080fd5b600154600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156105d357600080fd5b6102c65a03f115156105e457600080fd5b505050604051805160015460008054929450600160a060020a03918216935063a9059cbb929091169084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561065957600080fd5b6102c65a03f1151561066a57600080fd5b50505060405180515050600054600160a060020a0316ff5b5b50565b600054600160a060020a031681565b635a01bc6081565b60025481565b60035481565b61271081565b60005433600160a060020a039081169116146106ca57600080fd5b600160a060020a03811615156106df57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b6000828202831580610728575082848281151561072557fe5b04145b151561073057fe5b8091505b5092915050565b60008282018381101561073057fe5b8091505b5092915050565b600080828481151561076357fe5b0490508091505b50929150505600a165627a7a72305820c16de8013bb9c860e3a1bef95d0d9e808ecfe33684269a1f570be3708713c0ac0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000045321004790a4dae7ba19217a10574d55739efc7
-----Decoded View---------------
Arg [0] : _tokenAddr (address): 0x45321004790A4dAe7bA19217A10574d55739EFc7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000045321004790a4dae7ba19217a10574d55739efc7
Swarm Source
bzzr://c16de8013bb9c860e3a1bef95d0d9e808ecfe33684269a1f570be3708713c0ac
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.