FundYourselfNow is now "Katalyse". Announcement: https://medium.com/@Katalyse/fundyourselfnow-is-now-katalyse-400d44271fe3
ERC-20
Crowdfunding
Overview
Max Total Supply
12,500,000 KAT
Holders
1,414 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.064 KATValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Token
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-06-11 */ pragma solidity ^0.4.11; /* This FYN token contract is derived from the vSlice ICO contract, based on the ERC20 token contract. Additional functionality has been integrated: * the function mintTokens() only callable from wallet, which makes use of the currentSwapRate() and safeToAdd() helpers * the function mintReserve() only callable from wallet, which at the end of the crowdsale will allow the owners to claim the unsold tokens * the function stopToken() only callable from wallet, which in an emergency, will trigger a complete and irrecoverable shutdown of the token * Contract tokens are locked when created, and no tokens including pre-mine can be moved until the crowdsale is over. */ // ERC20 Token Standard Interface // https://github.com/ethereum/EIPs/issues/20 contract ERC20 { function totalSupply() constant returns (uint); function balanceOf(address who) constant returns (uint); function allowance(address owner, address spender) constant returns (uint); function transfer(address to, uint value) returns (bool ok); function transferFrom(address from, address to, uint value) returns (bool ok); function approve(address spender, uint value) returns (bool ok); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); } contract Token is ERC20 { string public constant name = "FundYourselfNow Token"; string public constant symbol = "FYN"; uint8 public constant decimals = 18; // 18 is the most common number of decimal places uint256 public tokenCap = 12500000e18; // 12.5 million FYN cap address public walletAddress; uint256 public creationTime; bool public transferStop; mapping( address => uint ) _balances; mapping( address => mapping( address => uint ) ) _approvals; uint _supply; event TokenMint(address newTokenHolder, uint amountOfTokens); event TokenSwapOver(); event EmergencyStopActivated(); modifier onlyFromWallet { if (msg.sender != walletAddress) throw; _; } // Check if transfer should stop modifier checkTransferStop { if (transferStop == true) throw; _; } /** * * Fix for the ERC20 short address attack * * http://vessenes.com/the-erc20-short-address-attack-explained/ */ modifier onlyPayloadSize(uint size) { if (!(msg.data.length == size + 4)) throw; _; } function Token( uint initial_balance, address wallet, uint256 crowdsaleTime) { _balances[msg.sender] = initial_balance; _supply = initial_balance; walletAddress = wallet; creationTime = crowdsaleTime; transferStop = true; } function totalSupply() constant returns (uint supply) { return _supply; } function balanceOf( address who ) constant returns (uint value) { return _balances[who]; } function allowance(address owner, address spender) constant returns (uint _allowance) { return _approvals[owner][spender]; } // A helper to notify if overflow occurs function safeToAdd(uint a, uint b) private constant returns (bool) { return (a + b >= a && a + b >= b); } // A helper to notify if overflow occurs for multiplication function safeToMultiply(uint _a, uint _b) private constant returns (bool) { return (_b == 0 || ((_a * _b) / _b) == _a); } // A helper to notify if underflow occurs for subtraction function safeToSub(uint a, uint b) private constant returns (bool) { return (a >= b); } function transfer( address to, uint value) checkTransferStop onlyPayloadSize(2 * 32) returns (bool ok) { if (to == walletAddress) throw; // Reject transfers to wallet (wallet cannot interact with token contract) if( _balances[msg.sender] < value ) { throw; } if( !safeToAdd(_balances[to], value) ) { throw; } _balances[msg.sender] -= value; _balances[to] += value; Transfer( msg.sender, to, value ); return true; } function transferFrom( address from, address to, uint value) checkTransferStop returns (bool ok) { if (to == walletAddress) throw; // Reject transfers to wallet (wallet cannot interact with token contract) // if you don't have enough balance, throw if( _balances[from] < value ) { throw; } // if you don't have approval, throw if( _approvals[from][msg.sender] < value ) { throw; } if( !safeToAdd(_balances[to], value) ) { throw; } // transfer and return true _approvals[from][msg.sender] -= value; _balances[from] -= value; _balances[to] += value; Transfer( from, to, value ); return true; } function approve(address spender, uint value) checkTransferStop returns (bool ok) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender,0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 // // Note that this doesn't prevent attacks; the user will have to personally // check to ensure that the token count has not changed, before issuing // a new approval. Increment/decrement is not commonly spec-ed, and // changing to a check-my-approvals-before-changing would require user // to find out his current approval for spender and change expected // behaviour for ERC20. if ((value!=0) && (_approvals[msg.sender][spender] !=0)) throw; _approvals[msg.sender][spender] = value; Approval( msg.sender, spender, value ); return true; } // The function currentSwapRate() returns the current exchange rate // between FYN tokens and Ether during the token swap period function currentSwapRate() constant returns(uint) { uint presalePeriod = 3 days; uint presaleTransitionWindow = 3 hours; if (creationTime + presalePeriod > now) { // 2017-06-10 11am GMT+8 return 140; // Presale Window is triggered by both time and "Start Token Swap / End Token Swap". Restricted to announement range and basic testing. } else if (creationTime + presalePeriod + 3 weeks > now) { // 2017-06-13 11am GMT+8, but we will only Start Token Swap at 2pm return 120; } else if (creationTime + presalePeriod + 6 weeks + 6 days + 3 hours + presaleTransitionWindow + 1 days > now) { // 2017-07-31 5pm GMT+8 (+1 day window ) // 1 day buffer to allow one final transaction from anyone to close everything // otherwise wallet will receive ether but send 0 tokens // we cannot throw as we will lose the state change to start swappability of tokens // This is actually just a price guide, actual closing is done at the Wallet level return 100; } else { return 0; } } // The function mintTokens is only usable by the chosen wallet // contract to mint a number of tokens proportional to the // amount of ether sent to the wallet contract. The function // can only be called during the tokenswap period function mintTokens(address newTokenHolder, uint etherAmount) external onlyFromWallet { if (!safeToMultiply(currentSwapRate(), etherAmount)) throw; uint tokensAmount = currentSwapRate() * etherAmount; if(!safeToAdd(_balances[newTokenHolder],tokensAmount )) throw; if(!safeToAdd(_supply,tokensAmount)) throw; if ((_supply + tokensAmount) > tokenCap) throw; _balances[newTokenHolder] += tokensAmount; _supply += tokensAmount; TokenMint(newTokenHolder, tokensAmount); } function mintReserve(address beneficiary) external onlyFromWallet { if (tokenCap <= _supply) throw; if(!safeToSub(tokenCap,_supply)) throw; uint tokensAmount = tokenCap - _supply; if(!safeToAdd(_balances[beneficiary], tokensAmount )) throw; if(!safeToAdd(_supply,tokensAmount)) throw; _balances[beneficiary] += tokensAmount; _supply += tokensAmount; TokenMint(beneficiary, tokensAmount); } // The function disableTokenSwapLock() is called by the wallet // contract once the token swap has reached its end conditions function disableTokenSwapLock() external onlyFromWallet { transferStop = false; TokenSwapOver(); } // Once activated, a new token contract will need to be created, mirroring the current token holdings. function stopToken() onlyFromWallet { transferStop = true; EmergencyStopActivated(); } } /* The standard Wallet contract, retrievable at https://github.com/ethereum/dapp-bin/blob/master/wallet/wallet.sol has been modified to include additional functionality, in particular: * An additional parent of wallet contract called tokenswap, implementing almost all the changes: - Functions for starting and stopping the tokenswap - A set-only-once function for the token contract - buyTokens(), which calls mintTokens() in the token contract - Modifiers for enforcing tokenswap time limits, max ether cap, and max token cap - withdrawEther(), for withdrawing unsold tokens after time cap * the wallet fallback function calls the buyTokens function * the wallet contract cannot selfdestruct during the tokenswap */ contract multiowned { // TYPES // struct for the status of a pending operation. struct PendingState { uint yetNeeded; uint ownersDone; uint index; } // EVENTS // this contract only has six types of events: it can accept a confirmation, in which case // we record owner and operation (hash) alongside it. event Confirmation(address owner, bytes32 operation); event Revoke(address owner, bytes32 operation); // some others are in the case of an owner changing. event OwnerChanged(address oldOwner, address newOwner); event OwnerAdded(address newOwner); event OwnerRemoved(address oldOwner); // the last one is emitted if the required signatures change event RequirementChanged(uint newRequirement); // MODIFIERS // simple single-sig function modifier. modifier onlyowner { if (isOwner(msg.sender)) _; } // multi-sig function modifier: the operation must have an intrinsic hash in order // that later attempts can be realised as the same underlying operation and // thus count as confirmations. modifier onlymanyowners(bytes32 _operation) { if (confirmAndCheck(_operation)) _; } // METHODS // constructor is given number of sigs required to do protected "onlymanyowners" transactions // as well as the selection of addresses capable of confirming them. function multiowned(address[] _owners, uint _required) { m_numOwners = _owners.length + 1; m_owners[1] = uint(msg.sender); m_ownerIndex[uint(msg.sender)] = 1; for (uint i = 0; i < _owners.length; ++i) { m_owners[2 + i] = uint(_owners[i]); m_ownerIndex[uint(_owners[i])] = 2 + i; } m_required = _required; } // Revokes a prior confirmation of the given operation function revoke(bytes32 _operation) external { uint ownerIndex = m_ownerIndex[uint(msg.sender)]; // make sure they're an owner if (ownerIndex == 0) return; uint ownerIndexBit = 2**ownerIndex; var pending = m_pending[_operation]; if (pending.ownersDone & ownerIndexBit > 0) { pending.yetNeeded++; pending.ownersDone -= ownerIndexBit; Revoke(msg.sender, _operation); } } // Replaces an owner `_from` with another `_to`. function changeOwner(address _from, address _to) onlymanyowners(sha3(msg.data)) external { if (isOwner(_to)) return; uint ownerIndex = m_ownerIndex[uint(_from)]; if (ownerIndex == 0) return; clearPending(); m_owners[ownerIndex] = uint(_to); m_ownerIndex[uint(_from)] = 0; m_ownerIndex[uint(_to)] = ownerIndex; OwnerChanged(_from, _to); } function addOwner(address _owner) onlymanyowners(sha3(msg.data)) external { if (isOwner(_owner)) return; clearPending(); if (m_numOwners >= c_maxOwners) reorganizeOwners(); if (m_numOwners >= c_maxOwners) return; m_numOwners++; m_owners[m_numOwners] = uint(_owner); m_ownerIndex[uint(_owner)] = m_numOwners; OwnerAdded(_owner); } function removeOwner(address _owner) onlymanyowners(sha3(msg.data)) external { uint ownerIndex = m_ownerIndex[uint(_owner)]; if (ownerIndex == 0) return; if (m_required > m_numOwners - 1) return; m_owners[ownerIndex] = 0; m_ownerIndex[uint(_owner)] = 0; clearPending(); reorganizeOwners(); //make sure m_numOwner is equal to the number of owners and always points to the optimal free slot OwnerRemoved(_owner); } function changeRequirement(uint _newRequired) onlymanyowners(sha3(msg.data)) external { if (_newRequired > m_numOwners) return; m_required = _newRequired; clearPending(); RequirementChanged(_newRequired); } // Gets an owner by 0-indexed position (using numOwners as the count) function getOwner(uint ownerIndex) external constant returns (address) { return address(m_owners[ownerIndex + 1]); } function isOwner(address _addr) returns (bool) { return m_ownerIndex[uint(_addr)] > 0; } function hasConfirmed(bytes32 _operation, address _owner) constant returns (bool) { var pending = m_pending[_operation]; uint ownerIndex = m_ownerIndex[uint(_owner)]; // make sure they're an owner if (ownerIndex == 0) return false; // determine the bit to set for this owner. uint ownerIndexBit = 2**ownerIndex; return !(pending.ownersDone & ownerIndexBit == 0); } // INTERNAL METHODS function confirmAndCheck(bytes32 _operation) internal returns (bool) { // determine what index the present sender is: uint ownerIndex = m_ownerIndex[uint(msg.sender)]; // make sure they're an owner if (ownerIndex == 0) return; var pending = m_pending[_operation]; // if we're not yet working on this operation, switch over and reset the confirmation status. if (pending.yetNeeded == 0) { // reset count of confirmations needed. pending.yetNeeded = m_required; // reset which owners have confirmed (none) - set our bitmap to 0. pending.ownersDone = 0; pending.index = m_pendingIndex.length++; m_pendingIndex[pending.index] = _operation; } // determine the bit to set for this owner. uint ownerIndexBit = 2**ownerIndex; // make sure we (the message sender) haven't confirmed this operation previously. if (pending.ownersDone & ownerIndexBit == 0) { Confirmation(msg.sender, _operation); // ok - check if count is enough to go ahead. if (pending.yetNeeded <= 1) { // enough confirmations: reset and run interior. delete m_pendingIndex[m_pending[_operation].index]; delete m_pending[_operation]; return true; } else { // not enough: record that this owner in particular confirmed. pending.yetNeeded--; pending.ownersDone |= ownerIndexBit; } } } function reorganizeOwners() private { uint free = 1; while (free < m_numOwners) { while (free < m_numOwners && m_owners[free] != 0) free++; while (m_numOwners > 1 && m_owners[m_numOwners] == 0) m_numOwners--; if (free < m_numOwners && m_owners[m_numOwners] != 0 && m_owners[free] == 0) { m_owners[free] = m_owners[m_numOwners]; m_ownerIndex[m_owners[free]] = free; m_owners[m_numOwners] = 0; } } } function clearPending() internal { uint length = m_pendingIndex.length; for (uint i = 0; i < length; ++i) if (m_pendingIndex[i] != 0) delete m_pending[m_pendingIndex[i]]; delete m_pendingIndex; } // FIELDS // the number of owners that must confirm the same operation before it is run. uint public m_required; // pointer used to find a free slot in m_owners uint public m_numOwners; // list of owners uint[256] m_owners; uint constant c_maxOwners = 250; // index on the list of owners to allow reverse lookup mapping(uint => uint) m_ownerIndex; // the ongoing operations. mapping(bytes32 => PendingState) m_pending; bytes32[] m_pendingIndex; } // inheritable "property" contract that enables methods to be protected by placing a linear limit (specifiable) // on a particular resource per calendar day. is multiowned to allow the limit to be altered. resource that method // uses is specified in the modifier. contract daylimit is multiowned { // MODIFIERS // simple modifier for daily limit. modifier limitedDaily(uint _value) { if (underLimit(_value)) _; } // METHODS // constructor - stores initial daily limit and records the present day's index. function daylimit(uint _limit) { m_dailyLimit = _limit; m_lastDay = today(); } // (re)sets the daily limit. needs many of the owners to confirm. doesn't alter the amount already spent today. function setDailyLimit(uint _newLimit) onlymanyowners(sha3(msg.data)) external { m_dailyLimit = _newLimit; } // resets the amount already spent today. needs many of the owners to confirm. function resetSpentToday() onlymanyowners(sha3(msg.data)) external { m_spentToday = 0; } // INTERNAL METHODS // checks to see if there is at least `_value` left from the daily limit today. if there is, subtracts it and // returns true. otherwise just returns false. function underLimit(uint _value) internal onlyowner returns (bool) { // reset the spend limit if we're on a different day to last time. if (today() > m_lastDay) { m_spentToday = 0; m_lastDay = today(); } // check if it's sending nothing (with or without data). This needs Multitransact if (_value == 0) return false; // check to see if there's enough left - if so, subtract and return true. // overflow protection // dailyLimit check if (m_spentToday + _value >= m_spentToday && m_spentToday + _value <= m_dailyLimit) { m_spentToday += _value; return true; } return false; } // determines today's index. function today() private constant returns (uint) { return now / 1 days; } // FIELDS uint public m_dailyLimit; uint public m_spentToday; uint public m_lastDay; } // interface contract for multisig proxy contracts; see below for docs. contract multisig { // EVENTS // logged events: // Funds has arrived into the wallet (record how much). event Deposit(address _from, uint value); // Single transaction going out of the wallet (record who signed for it, how much, and to whom it's going). event SingleTransact(address owner, uint value, address to, bytes data); // Multi-sig transaction going out of the wallet (record who signed for it last, the operation hash, how much, and to whom it's going). event MultiTransact(address owner, bytes32 operation, uint value, address to, bytes data); // Confirmation still needed for a transaction. event ConfirmationNeeded(bytes32 operation, address initiator, uint value, address to, bytes data); // FUNCTIONS // TODO: document function changeOwner(address _from, address _to) external; function execute(address _to, uint _value, bytes _data) external returns (bytes32); function confirm(bytes32 _h) returns (bool); } contract tokenswap is multisig, multiowned { Token public tokenCtr; bool public tokenSwap; uint public constant PRESALE_LENGTH = 3 days; uint public constant TRANSITION_WINDOW = 3 hours; // We will turn on tokenSwap in this period and it will 120 FYN / ETH uint public constant SWAP_LENGTH = PRESALE_LENGTH + TRANSITION_WINDOW + 6 weeks + 6 days + 3 hours; uint public constant MAX_ETH = 75000 ether; // Hard cap, capped otherwise by total tokens sold (max 7.5M FYN) uint public amountRaised; modifier isUnderPresaleMinimum { if (tokenCtr.creationTime() + PRESALE_LENGTH > now) { if (msg.value < 20 ether) throw; } _; } modifier isZeroValue { if (msg.value == 0) throw; _; } modifier isOverCap { if (amountRaised + msg.value > MAX_ETH) throw; _; } modifier isOverTokenCap { if (!safeToMultiply(tokenCtr.currentSwapRate(), msg.value)) throw; uint tokensAmount = tokenCtr.currentSwapRate() * msg.value; if(!safeToAdd(tokenCtr.totalSupply(),tokensAmount)) throw; if (tokenCtr.totalSupply() + tokensAmount > tokenCtr.tokenCap()) throw; _; } modifier isSwapStopped { if (!tokenSwap) throw; _; } modifier areConditionsSatisfied { _; // End token swap if sale period ended // We can't throw to reverse the amount sent in or we will lose state // , so we will accept it even though if it is after crowdsale if (tokenCtr.creationTime() + SWAP_LENGTH < now) { tokenCtr.disableTokenSwapLock(); tokenSwap = false; } // Check if cap has been reached in this tx if (amountRaised == MAX_ETH) { tokenCtr.disableTokenSwapLock(); tokenSwap = false; } // Check if token cap has been reach in this tx if (tokenCtr.totalSupply() == tokenCtr.tokenCap()) { tokenCtr.disableTokenSwapLock(); tokenSwap = false; } } // A helper to notify if overflow occurs for addition function safeToAdd(uint a, uint b) private constant returns (bool) { return (a + b >= a && a + b >= b); } // A helper to notify if overflow occurs for multiplication function safeToMultiply(uint _a, uint _b) private constant returns (bool) { return (_b == 0 || ((_a * _b) / _b) == _a); } function startTokenSwap() onlyowner { tokenSwap = true; } function stopTokenSwap() onlyowner { tokenSwap = false; } function setTokenContract(address newTokenContractAddr) onlyowner { if (newTokenContractAddr == address(0x0)) throw; // Allow setting only once if (tokenCtr != address(0x0)) throw; tokenCtr = Token(newTokenContractAddr); } function buyTokens(address _beneficiary) payable isUnderPresaleMinimum isZeroValue isOverCap isOverTokenCap isSwapStopped areConditionsSatisfied { Deposit(msg.sender, msg.value); tokenCtr.mintTokens(_beneficiary, msg.value); if (!safeToAdd(amountRaised, msg.value)) throw; amountRaised += msg.value; } function withdrawReserve(address _beneficiary) onlyowner { if (tokenCtr.creationTime() + SWAP_LENGTH < now) { tokenCtr.mintReserve(_beneficiary); } } } // usage: // bytes32 h = Wallet(w).from(oneOwner).transact(to, value, data); // Wallet(w).from(anotherOwner).confirm(h); contract Wallet is multisig, multiowned, daylimit, tokenswap { // TYPES // Transaction structure to remember details of transaction lest it need be saved for a later call. struct Transaction { address to; uint value; bytes data; } // METHODS // constructor - just pass on the owner array to the multiowned and // the limit to daylimit function Wallet(address[] _owners, uint _required, uint _daylimit) multiowned(_owners, _required) daylimit(_daylimit) { } // kills the contract sending everything to `_to`. function kill(address _to) onlymanyowners(sha3(msg.data)) external { // ensure owners can't prematurely stop token sale if (tokenSwap) throw; // ensure owners can't kill wallet without stopping token // otherwise token can never be stopped if (tokenCtr.transferStop() == false) throw; suicide(_to); } // Activates Emergency Stop for Token function stopToken() onlymanyowners(sha3(msg.data)) external { tokenCtr.stopToken(); } // gets called when no other function matches function() payable { buyTokens(msg.sender); } // Outside-visible transact entry point. Executes transaction immediately if below daily spend limit. // If not, goes into multisig process. We provide a hash on return to allow the sender to provide // shortcuts for the other confirmations (allowing them to avoid replicating the _to, _value // and _data arguments). They still get the option of using them if they want, anyways. function execute(address _to, uint _value, bytes _data) external onlyowner returns (bytes32 _r) { // Disallow the wallet contract from calling token contract once it's set // so tokens can't be minted arbitrarily once the sale starts. // Tokens can be minted for premine before the sale opens and tokenCtr is set. if (_to == address(tokenCtr)) throw; // first, take the opportunity to check that we're under the daily limit. if (underLimit(_value)) { SingleTransact(msg.sender, _value, _to, _data); // yes - just execute the call. if(!_to.call.value(_value)(_data)) return 0; } // determine our operation hash. _r = sha3(msg.data, block.number); if (!confirm(_r) && m_txs[_r].to == 0) { m_txs[_r].to = _to; m_txs[_r].value = _value; m_txs[_r].data = _data; ConfirmationNeeded(_r, msg.sender, _value, _to, _data); } } // confirm a transaction through just the hash. we use the previous transactions map, m_txs, in order // to determine the body of the transaction from the hash provided. function confirm(bytes32 _h) onlymanyowners(_h) returns (bool) { if (m_txs[_h].to != 0) { if (!m_txs[_h].to.call.value(m_txs[_h].value)(m_txs[_h].data)) // Bugfix: If successful, MultiTransact event should fire; if unsuccessful, we should throw throw; MultiTransact(msg.sender, _h, m_txs[_h].value, m_txs[_h].to, m_txs[_h].data); delete m_txs[_h]; return true; } } // INTERNAL METHODS function clearPending() internal { uint length = m_pendingIndex.length; for (uint i = 0; i < length; ++i) delete m_txs[m_pendingIndex[i]]; super.clearPending(); } // FIELDS // pending transactions we have at present. mapping (bytes32 => Transaction) m_txs; }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"ok","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"supply","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"ok","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"disableTokenSwapLock","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"currentSwapRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"transferStop","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"walletAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"value","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"ok","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"mintReserve","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"stopToken","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creationTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenCap","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"_allowance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newTokenHolder","type":"address"},{"name":"etherAmount","type":"uint256"}],"name":"mintTokens","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"initial_balance","type":"uint256"},{"name":"wallet","type":"address"},{"name":"crowdsaleTime","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newTokenHolder","type":"address"},{"indexed":false,"name":"amountOfTokens","type":"uint256"}],"name":"TokenMint","type":"event"},{"anonymous":false,"inputs":[],"name":"TokenSwapOver","type":"event"},{"anonymous":false,"inputs":[],"name":"EmergencyStopActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
60606040526a0a56fa5b99019a5c800000600055341561001b57fe5b604051606080610cb28339810160409081528151602083015191909201515b33600160a060020a039081166000908152600460205260409020849055600684905560018054600160a060020a03191691841691909117815560028290556003805460ff191690911790555b5050505b610c19806100996000396000f300606060405236156100f95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100fb578063095ea7b31461018b57806318160ddd146101be57806323b872dd146101e0578063313ce567146102195780633592f3691461023f5780635334c231146102515780636780a311146102735780636ad5b3ea1461029757806370a08231146102c357806395d89b41146102f1578063a9059cbb14610381578063a91ed8c6146103b4578063d21c700f146103d2578063d8270dce146103e4578063dd54291b14610406578063dd62ed3e14610428578063f0dda65c1461045c575bfe5b341561010357fe5b61010b61047d565b604080516020808252835181830152835191928392908301918501908083838215610151575b80518252602083111561015157601f199092019160209182019101610131565b505050905090810190601f16801561017d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019357fe5b6101aa600160a060020a03600435166024356104b4565b604080519115158252519081900360200190f35b34156101c657fe5b6101ce610573565b60408051918252519081900360200190f35b34156101e857fe5b6101aa600160a060020a036004358116906024351660443561057a565b604080519115158252519081900360200190f35b341561022157fe5b6102296106c8565b6040805160ff9092168252519081900360200190f35b341561024757fe5b61024f6106cd565b005b341561025957fe5b6101ce610720565b60408051918252519081900360200190f35b341561027b57fe5b6101aa610786565b604080519115158252519081900360200190f35b341561029f57fe5b6102a761078f565b60408051600160a060020a039092168252519081900360200190f35b34156102cb57fe5b6101ce600160a060020a036004351661079e565b60408051918252519081900360200190f35b34156102f957fe5b61010b6107bd565b604080516020808252835181830152835191928392908301918501908083838215610151575b80518252602083111561015157601f199092019160209182019101610131565b505050905090810190601f16801561017d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561038957fe5b6101aa600160a060020a03600435166024356107f4565b604080519115158252519081900360200190f35b34156103bc57fe5b61024f600160a060020a0360043516610904565b005b34156103da57fe5b61024f610a05565b005b34156103ec57fe5b6101ce610a5b565b60408051918252519081900360200190f35b341561040e57fe5b6101ce610a61565b60408051918252519081900360200190f35b341561043057fe5b6101ce600160a060020a0360043581169060243516610a67565b60408051918252519081900360200190f35b341561046457fe5b61024f600160a060020a0360043516602435610a94565b005b60408051808201909152601581527f46756e64596f757273656c664e6f7720546f6b656e0000000000000000000000602082015281565b60035460009060ff161515600114156104cd5760006000fd5b81158015906105005750600160a060020a0333811660009081526005602090815260408083209387168352929052205415155b1561050b5760006000fd5b600160a060020a03338116600081815260056020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b5b92915050565b6006545b90565b60035460009060ff161515600114156105935760006000fd5b600154600160a060020a03848116911614156105af5760006000fd5b600160a060020a038416600090815260046020526040902054829010156105d65760006000fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220548290101561060b5760006000fd5b600160a060020a03831660009081526004602052604090205461062e9083610b9f565b151561063a5760006000fd5b600160a060020a03808516600081815260056020908152604080832033861684528252808320805488900390558383526004825280832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060015b5b9392505050565b601281565b60015433600160a060020a039081169116146106e95760006000fd5b6003805460ff191690556040517f0d27864fb2752ddaaa945c943c62b77c1476125056d0343ab1e2159da779fa4090600090a15b5b565b6002546000906203f48090612a309042908301111561074257608c925061077e565b428260025401621baf8001111561075c576078925061077e565b6002544290830182016240c3b0011115610779576064925061077e565b600092505b5b5b5b505090565b60035460ff1681565b600154600160a060020a031681565b600160a060020a0381166000908152600460205260409020545b919050565b60408051808201909152600381527f46594e0000000000000000000000000000000000000000000000000000000000602082015281565b60035460009060ff1615156001141561080d5760006000fd5b60403660441461081d5760006000fd5b600154600160a060020a03858116911614156108395760006000fd5b600160a060020a033316600090815260046020526040902054839010156108605760006000fd5b600160a060020a0384166000908152600460205260409020546108839084610b9f565b151561088f5760006000fd5b600160a060020a03338116600081815260046020908152604080832080548990039055938816808352918490208054880190558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5b505b92915050565b60015460009033600160a060020a039081169116146109235760006000fd5b600654600054116109345760006000fd5b610942600054600654610bbe565b151561094e5760006000fd5b5060065460008054600160a060020a038416825260046020526040909120549190039061097b9082610b9f565b15156109875760006000fd5b61099360065482610b9f565b151561099f5760006000fd5b600160a060020a03821660008181526004602090815260409182902080548501905560068054850190558151928352820183905280517f36bf5aa3964be01dbd95a0154a8930793fe68353bdc580871ffb2c911366bbc79281900390910190a15b5b5050565b60015433600160a060020a03908116911614610a215760006000fd5b6003805460ff191660011790556040517f4e360eaf5c2a0e4ebb03155da87ffa096252cc2ec66db5848b4ef13e99172bbd90600090a15b5b565b60025481565b60005481565b600160a060020a038083166000908152600560209081526040808320938516835292905220545b92915050565b60015460009033600160a060020a03908116911614610ab35760006000fd5b610ac4610abe610720565b83610bc9565b1515610ad05760006000fd5b81610ad9610720565b600160a060020a03851660009081526004602052604090205491029150610b009082610b9f565b1515610b0c5760006000fd5b610b1860065482610b9f565b1515610b245760006000fd5b60005481600654011115610b385760006000fd5b600160a060020a03831660008181526004602090815260409182902080548501905560068054850190558151928352820183905280517f36bf5aa3964be01dbd95a0154a8930793fe68353bdc580871ffb2c911366bbc79281900390910190a15b5b505050565b60008282840110158015610bb557508182840110155b90505b92915050565b808210155b92915050565b6000811580610bb557508282838502811515610be157fe5b04145b90505b929150505600a165627a7a723058207526148d1bb419490e4c42a4c5402ff48483da6ee4a214f6e6c54dfba2a2824a00290000000000000000000000000000000000000000000422ca8b0a00a425000000000000000000000000000000b1021477444c6566509e1b80d2c99e9603a31c4700000000000000000000000000000000000000000000000000000000593b60b0
Deployed Bytecode
0x606060405236156100f95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100fb578063095ea7b31461018b57806318160ddd146101be57806323b872dd146101e0578063313ce567146102195780633592f3691461023f5780635334c231146102515780636780a311146102735780636ad5b3ea1461029757806370a08231146102c357806395d89b41146102f1578063a9059cbb14610381578063a91ed8c6146103b4578063d21c700f146103d2578063d8270dce146103e4578063dd54291b14610406578063dd62ed3e14610428578063f0dda65c1461045c575bfe5b341561010357fe5b61010b61047d565b604080516020808252835181830152835191928392908301918501908083838215610151575b80518252602083111561015157601f199092019160209182019101610131565b505050905090810190601f16801561017d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019357fe5b6101aa600160a060020a03600435166024356104b4565b604080519115158252519081900360200190f35b34156101c657fe5b6101ce610573565b60408051918252519081900360200190f35b34156101e857fe5b6101aa600160a060020a036004358116906024351660443561057a565b604080519115158252519081900360200190f35b341561022157fe5b6102296106c8565b6040805160ff9092168252519081900360200190f35b341561024757fe5b61024f6106cd565b005b341561025957fe5b6101ce610720565b60408051918252519081900360200190f35b341561027b57fe5b6101aa610786565b604080519115158252519081900360200190f35b341561029f57fe5b6102a761078f565b60408051600160a060020a039092168252519081900360200190f35b34156102cb57fe5b6101ce600160a060020a036004351661079e565b60408051918252519081900360200190f35b34156102f957fe5b61010b6107bd565b604080516020808252835181830152835191928392908301918501908083838215610151575b80518252602083111561015157601f199092019160209182019101610131565b505050905090810190601f16801561017d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561038957fe5b6101aa600160a060020a03600435166024356107f4565b604080519115158252519081900360200190f35b34156103bc57fe5b61024f600160a060020a0360043516610904565b005b34156103da57fe5b61024f610a05565b005b34156103ec57fe5b6101ce610a5b565b60408051918252519081900360200190f35b341561040e57fe5b6101ce610a61565b60408051918252519081900360200190f35b341561043057fe5b6101ce600160a060020a0360043581169060243516610a67565b60408051918252519081900360200190f35b341561046457fe5b61024f600160a060020a0360043516602435610a94565b005b60408051808201909152601581527f46756e64596f757273656c664e6f7720546f6b656e0000000000000000000000602082015281565b60035460009060ff161515600114156104cd5760006000fd5b81158015906105005750600160a060020a0333811660009081526005602090815260408083209387168352929052205415155b1561050b5760006000fd5b600160a060020a03338116600081815260056020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b5b92915050565b6006545b90565b60035460009060ff161515600114156105935760006000fd5b600154600160a060020a03848116911614156105af5760006000fd5b600160a060020a038416600090815260046020526040902054829010156105d65760006000fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220548290101561060b5760006000fd5b600160a060020a03831660009081526004602052604090205461062e9083610b9f565b151561063a5760006000fd5b600160a060020a03808516600081815260056020908152604080832033861684528252808320805488900390558383526004825280832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060015b5b9392505050565b601281565b60015433600160a060020a039081169116146106e95760006000fd5b6003805460ff191690556040517f0d27864fb2752ddaaa945c943c62b77c1476125056d0343ab1e2159da779fa4090600090a15b5b565b6002546000906203f48090612a309042908301111561074257608c925061077e565b428260025401621baf8001111561075c576078925061077e565b6002544290830182016240c3b0011115610779576064925061077e565b600092505b5b5b5b505090565b60035460ff1681565b600154600160a060020a031681565b600160a060020a0381166000908152600460205260409020545b919050565b60408051808201909152600381527f46594e0000000000000000000000000000000000000000000000000000000000602082015281565b60035460009060ff1615156001141561080d5760006000fd5b60403660441461081d5760006000fd5b600154600160a060020a03858116911614156108395760006000fd5b600160a060020a033316600090815260046020526040902054839010156108605760006000fd5b600160a060020a0384166000908152600460205260409020546108839084610b9f565b151561088f5760006000fd5b600160a060020a03338116600081815260046020908152604080832080548990039055938816808352918490208054880190558351878152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3600191505b5b505b92915050565b60015460009033600160a060020a039081169116146109235760006000fd5b600654600054116109345760006000fd5b610942600054600654610bbe565b151561094e5760006000fd5b5060065460008054600160a060020a038416825260046020526040909120549190039061097b9082610b9f565b15156109875760006000fd5b61099360065482610b9f565b151561099f5760006000fd5b600160a060020a03821660008181526004602090815260409182902080548501905560068054850190558151928352820183905280517f36bf5aa3964be01dbd95a0154a8930793fe68353bdc580871ffb2c911366bbc79281900390910190a15b5b5050565b60015433600160a060020a03908116911614610a215760006000fd5b6003805460ff191660011790556040517f4e360eaf5c2a0e4ebb03155da87ffa096252cc2ec66db5848b4ef13e99172bbd90600090a15b5b565b60025481565b60005481565b600160a060020a038083166000908152600560209081526040808320938516835292905220545b92915050565b60015460009033600160a060020a03908116911614610ab35760006000fd5b610ac4610abe610720565b83610bc9565b1515610ad05760006000fd5b81610ad9610720565b600160a060020a03851660009081526004602052604090205491029150610b009082610b9f565b1515610b0c5760006000fd5b610b1860065482610b9f565b1515610b245760006000fd5b60005481600654011115610b385760006000fd5b600160a060020a03831660008181526004602090815260409182902080548501905560068054850190558151928352820183905280517f36bf5aa3964be01dbd95a0154a8930793fe68353bdc580871ffb2c911366bbc79281900390910190a15b5b505050565b60008282840110158015610bb557508182840110155b90505b92915050565b808210155b92915050565b6000811580610bb557508282838502811515610be157fe5b04145b90505b929150505600a165627a7a723058207526148d1bb419490e4c42a4c5402ff48483da6ee4a214f6e6c54dfba2a2824a0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000422ca8b0a00a425000000000000000000000000000000b1021477444c6566509e1b80d2c99e9603a31c4700000000000000000000000000000000000000000000000000000000593b60b0
-----Decoded View---------------
Arg [0] : initial_balance (uint256): 5000000000000000000000000
Arg [1] : wallet (address): 0xB1021477444C6566509e1b80d2C99E9603A31C47
Arg [2] : crowdsaleTime (uint256): 1497063600
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000422ca8b0a00a425000000
Arg [1] : 000000000000000000000000b1021477444c6566509e1b80d2c99e9603a31c47
Arg [2] : 00000000000000000000000000000000000000000000000000000000593b60b0
Swarm Source
bzzr://7526148d1bb419490e4c42a4c5402ff48483da6ee4a214f6e6c54dfba2a2824a
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.