We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [crowdsale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
436 views

How to create a different contract for private and ICO?

Is it possible that the Total supply is created at the time of creation of token for Privete-sale and then create an ICO contract for the Unsold tokens to sell them on crowdsale? (i.e. It is hard to ...
1
vote
2answers
174 views

Receive ether from one address and transfer tokens to another [closed]

I am starting a crowdsale and I want to add a custom function to my crowdsale contract. Basically I want users to be able to purchase tokens for fiat and bitcoins. In order to make that work I will ...
0
votes
1answer
236 views

How can I use token functions of an ERC20 token bought in a crowdsale in Ethereum Wallet?

I am using Rinkeby in Ethereum Wallet and have created a crowdsale contract which created ERC20 tokens, assigned the crowdsale as the owner and then sold them to addresses which bought them using the ...
3
votes
1answer
682 views

If a contract's function calls a function of another contract within it, is the address of the contract the msg.sender?

For example, a crowdsale contract has a function that creates an ERC20 token called "token" using a token contract that is already defined further up in the code being deployed. The constructor ...
1
vote
2answers
492 views

Why this code gives me this error. Please help

Code is pragma solidity ^0.4.18; import 'https://github.com/OpenZeppelin/zeppelin-solidity/contracts/token/ERC20/MintableToken.sol'; contract HashnodeToken is MintableToken { string public name = ...
0
votes
1answer
179 views

How are price changes based on time implemented in crowdsale smart contracts?

How can I implement a price structure into a crowdsale smart contract so that a price per token would be increased after a certain time? I want to use best practices for this but cannot find ...
0
votes
3answers
282 views

CrowdSale basic contract sample showing Gas limit error

Hello I have copied Basic contract from official website https://ethereum.org/crowdsale I'm beginner in Solidity and Ethereum development It was successfully compiled by Remix but when I click "...
2
votes
0answers
49 views

What is the reason for make a wallet with 1 token during ICO?

Because of my inexperience, I don't understand why (I guess for security reasons) contract owner of a crowdsale split its tokens over several owners, one of them with a 1 token only. For example ...
0
votes
2answers
343 views

Unable to update state variables of inherited contracts

I'm trying to write an extension of OpenZeppelin's CappedCrowdsale to allow for a hard cap in USD, as I think this is more human-readable than having everything in wei. However, I'm having issues ...
0
votes
1answer
48 views

How to provide more tokens for the amount of ether you send in a crowd sales contract?

So I created an time ratio crowd sale contract based on a token with a set initial supply and no mint function. I publish this contract and then send the associated tokens to the contract. I can send ...
2
votes
3answers
311 views

How do I pass a token as a constructor parameter for a Crowdsale contract

I am trying to modify the OpenZeppelin Crowdsale.sol contract for my own purpose and in the constructor it takes a token. function Crowdsale(uint256 _startTime, uint256 _endTime, uint256 _rate, ...
0
votes
1answer
1k views

How to use payable to receive ethers?

I'm new to the smart contracts. I want to create a contract which accepts ether and will transfer the equivalent tokens to the sender ether address (crowdsale). after few days research, i was written ...
0
votes
1answer
395 views

Remix Gas limit exceeded regardless of how high I set it

I am deploying a crowdsale contract in Remix but no matter how high I set the gas limit (set it to 40000000 once) or even how much I change the value field I can't get this contract to not exceed the ...
0
votes
1answer
116 views

Placement of addresses in Crowdsale contract

Im stuck with a crowdsale that needs to be deployed tomorrow! Already created token and now just want to crowdsale. So tried several examples- ethereum.org,zeppelin, github and all but they dont seem ...
0
votes
1answer
483 views

how to define start time and end time of crowdsale in constructor

I am pretty much stuck with my crowdsale contract. I think i am missing the correct entries in the constructor like time and rate. Can someone help me on how to fill in the correct values? I am ...
0
votes
1answer
333 views

How To Add a Function In Contract

I created this very simple contract, but upon testing it, i found out that when there are no tokens to be sent when ether is recieved, the contract ceases to ether and theres no way to retrieve it. ...
0
votes
1answer
167 views

ERC20 Crowdsale, Tokens per ether

I am using the zeppelin-solidity. Where is the setting how many tokens you receive for 1 Ether? And where can I set my Ether account as the receiver account? Thanks
0
votes
1answer
310 views

Simple crowdsale

I want to do a simple crowdsale for lets say 500.000.000 tokens. For 1 ether you will get 100.000 tokens. 20% will be holded by me, others goes to crowdsale. What wont be sold, it will be burned. I ...
0
votes
1answer
77 views

Verified smart contract says beneficiary and token address 0x0000

I just deployed a token crowdsale contract here https://ropsten.etherscan.io/address/0x043acaa777f3e08d0b25d48c899a681a7a17db37#readContract When I read smart contract, the tokenReward and ...
0
votes
1answer
140 views

Crowdsale end time

Question about setting crowdsale end time. Is it possible to have an adjustable end time? Meaning there's no end time set, and admin can end the crowdsale any time once the crowdsale started.
0
votes
1answer
298 views

Creating a crowdsale with three features for a contract?

I'm currently trying to create a Ethereum contract. The thing is I'd like to set a crowdsale for this contract with certain features: Deadline (42 days). Bonus period Start at 30 % and decrease ...
3
votes
1answer
405 views

How do I Withdrawing ehter from crowdsale contract to my wallet?

problem: When the crowd sale ends the contract is funded with the ether contributed but it is not sent to the beneficiary address. How do I get the ether out of the contract so that it can be used by ...
1
vote
1answer
71 views

crowdsale contract on my Ethereum Wallet for windows

I first created a token without difficulty with Ethereum Wallet can be see here: https://etherscan.io/address/0x926351469a1a97Ca5AB9b80928a0Ba01493d39F9#readContract. Now I'm trying to do a ...
7
votes
3answers
4k views

Error encountered, bailing. Network state unknown. Review successful transactions manually

Problem I get the following error after running $ truffle migrate --reset: Running migration: 1_initial_migration.js Replacing Migrations... ... ...
1
vote
1answer
211 views

Ethereum crowdsale example - Stuck tokens (how to save)

I deployed a crowdsale contract using the source from ethereum.org and loaded it with some tokens. It works as expected, except that it has no code to return the unsold tokens to the beneficiary. Is ...
1
vote
1answer
297 views

Gas issue on remix

I need your help, please. I've been trying to deploy a simple token and crowdsale contract that creates the token on remix, but when I try to deploy the crowdsale contract, it tells me gas exceeds the ...
0
votes
2answers
319 views

How to create unique contribution addresses for a referral system by smartcontract

I ran into some trouble with my smartcontract. I want to be able to allocate referral tokens to each person who participated in the ICO referral program. In order to do this, the smart contract must ...
0
votes
0answers
468 views

Withdrawing ether from crowdsale contract, issuing the right amount of tokens

I'm trying to create a crowd sale contract and have run into two issues that I can't resolve/find the answers to in the forums or documentation despite searching for the past two days. I imagine its ...
2
votes
3answers
189 views

Publishing two contracts

I'm going to publish two contracts: a standard token contract and a crowdsale contract. What is the best practice for this? Should I publish it in one file? Does it mean only the second contract in ...
0
votes
1answer
374 views

(node:207476) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):

Here is where error appears: > Using network 'ropsten'. > > Running migration: 1_initial_migration.js Deploying Migrations... > ... ...
0
votes
1answer
306 views

Mist - Rinkeby Test Net - No Longer Sending Confirmations

Im sure this is a very simple problem that one of the brilliant geniuses on this site should be able to answer! I have been testing a sample crowdsale using the Tutorials on https://ethereum.org/...
1
vote
0answers
493 views

Token and Crowdsale contracts address problem

I'm testing the creation and deployment of ERC20 token + Crowdsale based on Open Zeppelin on the Rinkeby testnet using Truffle + Geth. The deployment went fine it seems, and through Metamask I was ...
0
votes
1answer
426 views

using existing token into a crowdsale

i'm trying to test a crowdsale with a already existing token with fixed supply. I have my token already in place and everything is working just fine if i used the account to transfer my tokens but i ...
0
votes
1answer
344 views

Ethereum Crowdsale Tutorial - Can't Transfer Ether to Crowdsale in Solo TestNet - The Contract Won't Allow This Transaction to Be Processed

Im sure this is a very simple problem that one of the brilliant geniuses on this site should be able to answer! I am following the tutorial for Crowdsale found on the Ethereum website https://www....
0
votes
1answer
267 views

Can someone explein me this Multi mint function (Solidity)?

I came accross this function to mint token for a crowdsale but I don't understand the meaning of the bit shift operations and what bit array should represent.. what is this code doing ? The code can ...
0
votes
1answer
186 views

How does crowdsale contract with lots of tiers work?

Hello :) I'm really interested in knowing how crowdsale contracts with tiers are made. ICOs these days have crowdsale for different tiers with different prices for each.. Like PreICO, Round 1, round 2,...
0
votes
1answer
288 views

basic ethereum zepplin crowdsale smart contract token rate question

A basic question on how zepplin solidity code calculates token rates. The code comments say // how many token units a buyer gets per wei uint256 public rate; however we cannot get it to serve back ...
0
votes
1answer
281 views

Ending a Crowdsale Contract Before End time

I have generated a crowdsale contract with start and end date time. I want to add a CROWDSALEend function. This function will end the crowdsale before end time if the goal is reached and the function ...
0
votes
0answers
208 views

Can't Send ETH to Crowdsale in Ropsten

I'm trying to test a token sale contract on the Ropsten test network but am having an issue. I am using Ethereum Wallet. I am following the guide at http://www.ethereum.org/crowdsale. I am getting ...
0
votes
1answer
595 views

Crowdsale Tokens

Saw your question about holding of tokens in a crowdsale, and now see its better that ICO contract holds all the tokens. Appreciate your help. How do I allocate all the tokens in owners wallet to the ...
2
votes
2answers
2k views

Pre-sale tokens locking mechanism

I was looking into the ERC20 Token Standards and Crowdsale. There are various sample contracts including the one from OpenZeppelin which exhibits locking the token transfers until the crowdsale is ...
0
votes
1answer
80 views

Please check this test token

This smart contract is properly deployed on Rinkeby. https://rinkeby.etherscan.io/token/0x551b092ae227414c5cf7c7e11e70c252e95bedf0 Questions: Why on MetaMask the Beneficiary account address (...
2
votes
2answers
254 views

Finally my first Token - questions

I finally could create my first test token on Rinkeby. Smart contract is deployed, buyer can send ETHs, the Receiving address receives funds... Contract address. https://rinkeby.etherscan.io/token/...
0
votes
1answer
128 views

Statements have no effect

These entries show Statement has no Effect issues. WHy so? The entries have "Statement has no Effect" problems startTime = _startTime; "1513683938"; endTime = _endTime; "1513687538"; ...
2
votes
1answer
752 views

Contract final touches. Problem with CappedCrowdsale

I am finalizing this basic but clean Crowdsale code. However, there is ParserError with "contract Cappedcrowdsale". Why? It does refer to Crowdsale though. Please check if this is a legit Smart ...
1
vote
1answer
359 views

Who holds the tokens in a crowdsale?

I am trying to figure out how the ICO crowdsale is usually done? I have a good understanding of the ERC20 Token and its standards. When a new token is created the owner is assigned all the tokens. I ...
0
votes
1answer
434 views

Crowdsale Gas limit problem

This complete code brings Gas limit error saying. What are code problems? creation of Crowdsale pending... creation of Crowdsale errored: Gas required exceeds limit: 3000000. An important gas ...
0
votes
1answer
242 views

Contract is deployed but token is not there?

In Rinkeby, I deploy the following contract on Remix (injectedweb3). I pay contract, it goes well, gives Contract address BUT on Mist contract is watchable (can find with address) + Etherscan Rinkeby ...
-1
votes
1answer
322 views

What is the problem with Transfer function?

Here, ERC20(token) - 'token' is given Undeclared identification issue, why? // low level token purchase function function buyTokens(address beneficiary) public payable { require(beneficiary != ...
0
votes
1answer
126 views

Is there a Problem with the “<” operator?

I actually do not like the concept of splitting the code into lots and lots of contracts. I basically wrote one crowed sale contract that handles tiers. I do not need time limits. Everything works ...