From 59e96099267ffed5ac2a93ba489ed35b06de83f2 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Fri, 30 Jun 2017 14:59:27 -0300 Subject: [PATCH] remove CrowdsaleToken it is superseded by the new crowdsale contracts --- contracts/token/CrowdsaleToken.sol | 60 ------------------------------ docs/source/crowdsaletoken.rst | 14 ------- 2 files changed, 74 deletions(-) delete mode 100644 contracts/token/CrowdsaleToken.sol delete mode 100644 docs/source/crowdsaletoken.rst diff --git a/contracts/token/CrowdsaleToken.sol b/contracts/token/CrowdsaleToken.sol deleted file mode 100644 index 0f75d3275..000000000 --- a/contracts/token/CrowdsaleToken.sol +++ /dev/null @@ -1,60 +0,0 @@ -pragma solidity ^0.4.11; - - -import "./StandardToken.sol"; - - -/** - * @title CrowdsaleToken - * - * @dev Simple ERC20 Token example, with crowdsale token creation - * @dev IMPORTANT NOTE: do not use or deploy this contract as-is. It needs some changes to be - * production ready. - */ -contract CrowdsaleToken is StandardToken { - - string public constant name = "CrowdsaleToken"; - string public constant symbol = "CRW"; - uint256 public constant decimals = 18; - // replace with your fund collection multisig address - address public constant multisig = 0x0; - - - // 1 ether = 500 example tokens - uint256 public constant PRICE = 500; - - /** - * @dev Fallback function which receives ether and sends the appropriate number of tokens to the - * msg.sender. - */ - function () payable { - createTokens(msg.sender); - } - - /** - * @dev Creates tokens and send to the specified address. - * @param recipient The address which will recieve the new tokens. - */ - function createTokens(address recipient) payable { - if (msg.value == 0) { - throw; - } - - uint256 tokens = msg.value.mul(getPrice()); - totalSupply = totalSupply.add(tokens); - - balances[recipient] = balances[recipient].add(tokens); - - if (!multisig.send(msg.value)) { - throw; - } - } - - /** - * @dev replace this with any other price function - * @return The price per unit of token. - */ - function getPrice() constant returns (uint256 result) { - return PRICE; - } -} diff --git a/docs/source/crowdsaletoken.rst b/docs/source/crowdsaletoken.rst deleted file mode 100644 index 98a06f190..000000000 --- a/docs/source/crowdsaletoken.rst +++ /dev/null @@ -1,14 +0,0 @@ -CrowdsaleToken -============================================= - -Simple ERC20 Token example, with crowdsale token creation. - -Inherits from contract StandardToken. - -createTokens(address recipient) payable -""""""""""""""""""""""""""""""""""""""""" -Creates tokens based on message value and credits to the recipient. - -getPrice() constant returns (uint result) -""""""""""""""""""""""""""""""""""""""""" -Returns the amount of tokens per 1 ether. \ No newline at end of file