Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [crowdsale]

The tag has no usage guidance.

1
vote
1answer
21 views

Set rate for crowdsale after it has ended

The problem I am trying to solve is how to properly price an ICO. One idea would be to have 10 tokens available. Do the ICO and collect all the ETH. Then after the ICO has ended, divvy up the tokens ...
0
votes
0answers
18 views

Best way to deal with Private Sale and Public Sale

I have plan to release Private sale and Public sale. Actually, I created two different contracts(DappTokenPrivSale.sol, DappTokenPubSale.sol), and tried to deploy them in different period. But, when I ...
0
votes
1answer
16 views

(Truffle) how to call finalize() function after finishing crowdsale

I would like to call token.transferOwnership(msg.sender) after finishing timed crowdsale. So, I inherited FinalizableCrowdsale contract, then override finalization() function to call transferOwnership ...
1
vote
0answers
36 views

How to get back the ownership from crowdsale?

When I started crowdsale, I transferred token ownership to the crowdsale contract. When the sale finished, I'd like to send back the ownership to token so that the next crowdsale will start. How can I ...
0
votes
0answers
40 views

How to create a crowdsale smart contract?

I tried to create a Crowdsale smart contract with remix.ethereum.org with this code : https://www.ethereum.org/crowdsale And it give me this error : ParserError: Expected token Semicolon got '...
0
votes
0answers
20 views

Error in sendTransaction() of deployed contract using truffle console

I deployed Token and Crowdsale contracts on Ganache network. For testing, I'm using Truffle console and followed below steps: 1) Create an instance of both contracts DappTokenCrowdsale.deployed()....
0
votes
1answer
35 views

Error in creating instance of deployed contract using truffle console

I deployed Token and Crowdsale contract in separate migration files. During Migration, there was no error. Migration logs are share: Running migration: 2_deploy_token.js Deploying DappToken... ......
1
vote
0answers
11 views

integrate icoengine into zeppelin crowdsale contract

I have the following functions // from https://github.com/eidoo/icoengine/blob/master/contracts/KYCBase.sol function buyTokens(uint64 buyerId, uint maxAmount, uint8 v, bytes32 r, bytes32 s) public ...
1
vote
1answer
29 views

Must token contract transfer all tokens to crowdsale contract before it can sell them?

I notice that on the standard tests for crowdsale contracts in Openzeppelin, they transfer the tokens from the Token contract to the Crowdsale Contract: context('once deployed', async function () { ...
1
vote
1answer
29 views

I want to remove the timed aspect of this crowdsale contract and make it finalizable manually [closed]

Which lines do I remove and what do I replace them with to change this from a timed crowdsale contract into one I can end manually? pragma solidity ^0.4.18; interface token { function transfer(...
0
votes
1answer
52 views

Transaction reverted during contract execution [Reverted]

I sent ETH to a contract address, and the transaction "failed" saying : Warning! Error encountered during contract execution [Reverted]. contract address and transaction failure here: https://...
1
vote
1answer
71 views

Buy token function does not work in crowd-sale smart contract

I am new to ethereum block-chain. I created a crowd-sale and ERC20 smart contract and deployed on rinkeby test network. The ERC20 token transfer function working fine. But when I check functionality ...
0
votes
2answers
68 views

Crowdfunding Contract like Kickstarter

I was following a tutorial for a Crowdfunding Smart Contract that acts like Kickstarter from Programtheblockchain, however I'm always getting a MetaMask Error which says "Exception thrown in Contract ...
0
votes
1answer
46 views

Refundable Crowdsale

I am trying to create a contract for crowdsale using OpenZeppelin lib. I have imported everything necessary to the contract and initialized everything properly, but when I am trying to deposit funds ...
0
votes
1answer
76 views

CappedCrowdsale of mintable ERC721

I am thinking of building a capped crowd sale using CappedCrowdsale and MintableERC721 of OpenZeppelin. I wonder if its better to mint the tokens once the cap is reached or to mint seperately once a ...
0
votes
2answers
82 views

Create and Run an AllowanceCrowdSale With Zeppelin-OS Contracts

I use the openzeppelin library: https://github.com/OpenZeppelin/openzeppelin-solidity/tree/v1.12.0 token I create a BurnableToken: pragma solidity 0.4.24; import 'openzeppelin-solidity/contracts/...
1
vote
1answer
129 views

Ethereum Token Creation & Crowdsale Example

My goal is to create a token and sell it via the crowdsale contract. I used the examples: https://www.ethereum.org/token The code below is the exact same as on the ethereum homepage besides the ...
1
vote
1answer
40 views

Can't withdraw from Crowdsale multiple times

I'm using a crowdsale contract (listed below) and on Ropsten network I just set founding goal to 1ETH send it to crowdsale address and then I can withdraw to beneficiary address but when I send ETH a ...
2
votes
0answers
80 views

Send ERC20 Tokens from Fixed Supply Token Contract to TokenCrowdSale Contract

For ICO Crowd Sale I have created 2 contracts one is MyToken.sol & other is MyTokenCrowdSale.sol. MyToken.sol creates fixed supply ERC20 tokens. contract MyToken is DetailedERC20, StandardToken { ...
2
votes
1answer
36 views

how to create a smart contract that receives funds, displays addresses that sent the funds?

function safeWithdrawal() public afterDeadline { if (!fundingGoalReached) { uint amount = balanceOf[msg.sender]; balanceOf[msg.sender] = 0; if (amount > 0) { ...
0
votes
1answer
33 views

Reentrancy Attack on Crowdsale contract with transferFrom method?

I'm trying to build a crowdsale contract for an existing erc20 token. This the function allows users to buy the token: function buyTokens(address _beneficiary) public onlyApproved(_beneficiary) ...
1
vote
1answer
26 views

Why am I not receiving '5 passing, 1 failing' after performing truffle test?

After running truffle test i get the following unexpected error: Zanes-iMac:riskxtoken zanemassey$ truffle test Using network 'development'. Compiling ./contracts/Migrations.sol... Compiling ./...
0
votes
0answers
17 views

eth.org crowdsale contract not working propely, with remix and MetaMask

(A) We can't sent ETH tesnet to our "crowdsale" contract (similar to the eth.org one). Every Tx "fail" cbecause the contrat "thrown", Voir : https://rinkeby.etherscan.io/tx/...
0
votes
2answers
102 views

I have a certain amount of ERC20 Tokens. How can I Create a crowdsale contract that allows me to send them to it to be sold?

I have created previous contracts where the token is created by the crowdsale and then the constructor allocates an amount of those to be transferred to other addresses and the remainder are for sale. ...
0
votes
1answer
37 views

Direct sale smart contract, is this working without security issue?

I want to make a page for direct sale of my token, just like the one in Loomx, with a fixed token price (changeable later by me) and immediately transfer token to buyer securely after purchase. I try ...
0
votes
1answer
81 views

Unable to transfer tokens from another contract

I am learning soildity. I created a fixed supply token. My token supply is 1000000 with 0 decimal places. Now, I want to transfer tokens from using new contract, so I created a new contract named ...
0
votes
1answer
103 views

Basic Crowdsale Contract

I am learning to develop smart contract using Solidity. Currently, I am working and test the feature of following crowdsale contract. https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v1.8.0/...
0
votes
1answer
52 views

Ethereum crowdsale tutorial code doesn't work on remix

I took the crowdsale code from the tutorial, copied the whole contract code and pasted it to remix (with Rinkeby testnet), and I'm getting straight an error: browser/contract.sol:52:25: ParserError: ...
0
votes
1answer
50 views

Cap is not showing actual amount after deploying contract on Main Ethereum network

I have deployed a crowdsale contract with bonus stages on Main Ethereum Network using remix.ethereum.org. I have set a Cap amount of ether in wei as my goal. After deploying contract, I looked into ...
2
votes
1answer
93 views

TimedCrowdsale.sol does not implement all functions and thus cannot be created

I found success in deploying Crowdsale.sol on ropsten testnet but I am finding trouble with TimedCrowdsale.sol I am using OpenZeppelin contracts of TimedCrowdsale.sol, SafeMath.sol, Crowdsale.sol, ...
0
votes
0answers
20 views

UppsalaCrowdsale

Wanna to try UppsalaCrowdsale But i can not deploy it throw etherium wallet, it always have warnings. Tried use geth console, it was deployed with this command: var myContract = crowdsale.new(1, ...
0
votes
1answer
38 views

ParserError: Expected event name or path

I have a lot of experience in programming but I'm a noob when it comes to ethereum programming. When I try to compile the code with truffle I have this error: ParserError: Expected event name or path ...
0
votes
1answer
109 views

The contract will not compile: Member not found or not visible [closed]

This is my code: pragma solidity ^0.4.23; import "./SafeMath.sol"; import "./MintableToken.sol"; import "./Ownable.sol"; import "./BurnableToken.sol"; /** * @title Crowdsale * @dev Crowdsale is a ...
0
votes
1answer
173 views

Implementation of an Allowance Crowdsale. Token Interface / _prevalidatePurchase-/_delivertokens-function

I am new to solidity coding and after I created some basic contracts as well as a ERC20 token contract I wanted to create a crowdsale contract. Now I am stuck and I have a question regarding the ...
0
votes
0answers
35 views

Crowdsale with manual token issuance by owner

I'm working with the OpenZeppelin solidity framework to run a crowdsale script. How would I be able to manually issue tokens for an offline buyer within the script? I created a new function to do this,...
0
votes
0answers
21 views

Crowdsale safeWithdrawal Failing

I've modified the default Ethereum crowdsale available on the homepage. I've tested it on the Rinkeby network & I am successfully funding the contract. However, when I attempt to withdraw the ...
1
vote
0answers
112 views

Mix of Crowdsale contracts does not work. Completely lost :-/ [closed]

I am following this community for quite a bit and found some very helpful answers in the past, so I hope you can help me to solve a problem with my crowdsale contract as well. At first I would like ...
0
votes
0answers
41 views

Hostile Takeover Of Minted Coin In Crowdsale

I am querying the warning on new crowd sales where minted tokens are made as per this guide: https://www.ethereum.org/crowdsale which reads as follows: Once you published the crowdsale contract, ...
0
votes
0answers
53 views

How can I create a crowdsale for tokens already held in my wallet?

For example, I had an initial crowdsale with a specific end date. The end date passed and then the unsold tokens were forwarded to my wallet address. How can a new crowdsale contract be created for ...
0
votes
2answers
607 views

Issue: Defining constructors as functions [duplicate]

Why do i ask this? I've been trying to solve this for hours. Problem version 1: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ...
0
votes
1answer
28 views

Important Question: ICO, How are the “Roadmaps” of “Contracts”

I would really like to know this if there's someone willing to support this quite easy, but great to know, before doing anything wrong about the road to ICO. Question: How's the road to do on the ...
0
votes
1answer
46 views

Remix: Bytecode isn't working, when deploying it with myetherwallet

The bytecode from Remix isn't just working, it isn't deploying the contract. As far what I've known, there's something to do with the code that I've to minimize. Is there something that I has to do? I ...
0
votes
1answer
24 views

Why get payments to my ERC20-Contract cancelled?

I have deployed my first coin, a ERC20 contract, on Rinkeby. But when I send ether to the contracts address, the transactions get cancelled with a state called "fail". Code: pragma solidity ^0.4.10; ...
1
vote
2answers
196 views

How do ICOs with token price linked to fiat currency prices work?

So when I see most Crowdsale contracts the price is set to x ETH and you receive the tokens based on that, if ETH price is down you get more tokens/$ and when ETH price is up, you get less/$. That's ...
0
votes
1answer
151 views

What are the safest wallets for receiving and storing Ether from an ICO? [duplicate]

Is it safe to use something like MyEtherWallet to set up a wallet and use that address in your crowdsale contract to receive funds from an ICO (thousands of ether)? If not, what is the recommended ...
1
vote
1answer
111 views

Tokensale whitelist UI

I am trying to design UI for a tokensale smart contract where all participants must be whitelisted before purchasing tokens. The participants submit their address via the UI form, but only the ...
0
votes
1answer
427 views

Transfer ownership of a contract in the constructor

I'm trying to create a contract, and set its owner at the same time contract ERC721CrowdSale is Ownable { ... }//contract is in the same file and has access to methods contract CS_Creator is Ownable{...
1
vote
1answer
537 views

What is the difference between ICO and Crowdsale?

I'm confused a bit between ICO and Crowfunding sale. ICO also used to collect funds from investors like Crowdsale. Ethereum provide both options run an ICO or Crowdsale, then what is the difference ...
0
votes
2answers
236 views

Crowdsale with time based bonus

I'm working with the OpenZeppelin solidity framework to run a crowdsale script, but would like to ask, is there is an existing open source solution for implementing time-based bonus payouts?
1
vote
1answer
62 views

Set Wallet Address to Crowdsale Address

I am using an openZepplin crowdsale contract which has the following constructor contract myContract is Crowdsale { function myContract ( uint256 _rate, address _wallet, ...