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
17
votes
1answer
44k views

what is the difference between hard cap and soft cap in ethereum ICO

Please someone provide me details about the hard cap and soft cap in ICO. I have to build an ICO with an hard cap. How do I implement it in a smart contract using solidity? Provide me concept behind ...
11
votes
1answer
2k views

Is it possible to create ICO crowdsale seamlessly accepting multiple assets?

Most of the ICO crowdsales accept ETH only. Some accept BTC. Very few accept other assets. I was thinking about creating crowdsale that would accept as many assets as possible. While creating, ...
9
votes
0answers
1k views

Pre ico and ico crowdsale contracts [closed]

Can you please recommend the best way to organize pre-ICO and ICO using Etherium smart contracts. I have found two options: 1) To make 2 different contracts and after ICO merge them (pre-ICO with ...
7
votes
1answer
5k views

How to impose a timelock || Vesting for ERC20 tokens during ICO(Crowdsale)

Hello I am writing a crowdsale using Zeppelin-Solidity where I need to integrate the token lock function so the ERC20 tokens can be locked for a specific period of time. The zeppelin-solidity seems ...
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... ... ...
7
votes
1answer
9k views

Send ether to contract address in web3.js

I want to send ether to this contract's contribute function using web3.js I'm trying below code for the same but this doesn't work for me. var AbiOfContract = 'abi_code'; var contractAddress = "...
6
votes
1answer
4k views

Crowdsales: non-mintable tokens vs mintable tokens (with hard cap)

There are crowdsales where the initial supply is set upon deployment which is set to the defined total supply (so that number is as many tokens that there will be) and when someone buys tokens during ...
6
votes
3answers
1k views

how to setup multicurrency ICO / Crowdsale

I'm having difficulty finding information on how to setup a contract that accepts multi-currency like bitcoin, wave, ripple, etc. And also looking for a solution to distribute my tokens to these ...
6
votes
3answers
2k views

Interacting with a deployed contract: How can I mint a token based on the Open Zeppelin Standard

Please excuse what seems to me a basic question, as I am very new to this: I'm using the truffle framework to deploy a smart contract. Playing around with Open zeppelin standard tokens, I've issued ...
4
votes
2answers
303 views

zeppelin-solidity Crowdsales Contract Not Working

I grab the smart contract example code from Zeppelin-Solidity GitHub https://github.com/OpenZeppelin/zeppelin-solidity I create and deploy the SimpleToken using EXACTLY the same code from the ...
3
votes
1answer
3k views

Smart Contract to receive tokens and give ether?

A CrowdSale contract usually receives Ether in exchange of certain token. Is it possible to make it backwards? To receive certain token and give an amount of ether in exchange? Is as simple as ...
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 ...
3
votes
2answers
826 views

Question about Crowdsale contract token cost

I have a quick question. What line of code do i need to add or remove here function Crowdsale( address ifSuccessfulSendTo, uint fundingGoalInEthers, uint durationInMinutes, ...
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 ...
3
votes
3answers
310 views

Help with Crowdsale contract

I've used the default crowdfunding code from the ethereum website, but I'm having a lot of trouble figuring out how to set the price for each token as an ether decimal (e.g. 0.0005 ether for each ...
3
votes
0answers
369 views

How does a token crowdsale or ICO work for a permissioned Blockchain project?

Filecoin, for example, ran their highly successful ICO on the Ethereum blockchain, though they are gonna operate on a different chain. AFAIK, main-net tokens can't be used on a private chain. Makes ...
3
votes
1answer
155 views

Error when using the original crowdsale code

I have copied the original crowd sale code from the Ethereum website and pasted it in the solidity contract source code field. Code is untouched, precisely as on the Ethereum website. For some reason ...
2
votes
2answers
937 views

TxReceipt Status fail sending ETH to Contract on Rinkeby

I am sending ETH on Rinkeby network from my wallet in Metamask to a contract that has been deployed on Rinkeby. This is a crowdsale contract based on Open Zeppelin. However when I check the ...
2
votes
6answers
2k views

How can I create a Dashboard for my Ethereum ICO investors to track their Tokens

We're launching an Initial Coin Offering (ICO) and I would like to create a user dashboard for investors to track their tokens and the progress of the crowdsale. How can I do this? I'm a web ...
2
votes
3answers
279 views

why don't popular tokens have payable fallback

I'm referring to the source of of the most popular tokens on etherscan. It looks like they don't have any payable functions. How do they accept ether and transfer the tokens automatically when ...
2
votes
1answer
812 views

What is an example of an ICO or Crowdsale that used the Open Zeppelin RefundVault contract?

I am trying to understand the RefundVault.sol contract from Open Zeppelin for implementing a soft cap that would refund investors if the cap is not reached. I am struggling t wrap my head around it, ...
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 ...
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/...
2
votes
3answers
351 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/...
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, ...
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 ...
2
votes
1answer
184 views

Questions about Crowdsale contract

I am kinda new to Solidity. kindly shed light in below issues: How to properly enter token quantity in Initial Supply (in this formula) , say it is 10 million contract MyCoin is StandardToken { ...
2
votes
2answers
92 views

Can the variables in a crowdsale contract be modified in future?

Once one deploys a crowdsale contract, can the variables like token supply, name, symbol be modified at a later date?
2
votes
4answers
2k views

ERC20 Ropsten - how do I view the token balance?

I've published crowdsale contract to the Ropsten test network and it is located here: https://ropsten.etherscan.io/address/0x5b15b8f8238b9ec9e9c50e9f9bfcee6073349a96 I've struggled with ABI-encoded ...
2
votes
1answer
990 views

Crowdsale contract and safe withdrawals

According to crowdsale contract at https://www.ethereum.org/crowdsale tokens are transferred to a user account when "function () payable" is called by using external function tokenReward.transfer(msg....
2
votes
1answer
65 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) { ...
2
votes
1answer
158 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, ...
2
votes
2answers
880 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 ...
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 ...
2
votes
1answer
982 views

display tokens sold on a web page and eth raised

I had created an ico smart contract for which is a customer sends 1 ether to the smart contract address customer will automatically receive the tokens. I want to display ether raised, tokens sold,.. ...
2
votes
1answer
692 views

In an Ethereum smart contract, can I check the balance of other ERC20 tokens from the sending address of a recieved transaction?

I'm currently designing a smart contract, where I'd basically like to incorporate a "coupon" like relationship between two different coins. Bob can send the smart contract CoinA, and receive CoinB as ...
2
votes
0answers
135 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
213 views

Accepting bitcoin during crowdsale and making refund if soft cap not reached [closed]

I'm gonna make some api to allow my crowdsale to accept bitcoin, however I ran into a problem. Because I will make refunds if soft cap not reached. What the best way to refund everything that was ...
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 ...
2
votes
1answer
538 views

Fail to “buy” from Crowdsale contract wrapping an already deployed contract

Hi I am a newbie to the Ethereum development. I have successfully deployed a burnable, pausable, capped token contract (TC) on rinkeby test network, and was able to interact with it - minted and ...
2
votes
0answers
421 views

Token contract and crowdsale contract deploy

I am Testing with an Ethereum Based token contract and i would need some help deploying the Token contract and Crowdsale contract. I already have done this, deploying booth contracts and allocating ...
2
votes
1answer
880 views

Is it possible to divide my crowdsale contract into multiple files in order to solve gas issue?

I'm trying to deploy a crowdsale contract, which is using open zeppelin, on ropsten network but I got gas related error. The error says "please check your gas amount". How can I solve it? I think this ...
2
votes
0answers
1k views

Crowdsale smart contract

We need a template of a fully workable crowdsale contract It should be with the time frame and we should specify rate and the wallet where all raised funds will go
2
votes
2answers
285 views

What is the most common 3rd party KYC provider to use for an ICO? [closed]

I am looking for some 3rd party KYC options to use for an ICO. What are the typical companies used by successful or respected ICOs? Also how do these companies work for KYC if the investor later ...
1
vote
3answers
115 views

Risk of attack if you give more than the half of your tokens?

I have read that you should own at least the half of your tokens in a DAO to avoid attacks. Is this true? Does it applies for crowdsales too? If so, crowdsale should be just giving less than the half ...
1
vote
2answers
40 views

Make a crowdsale reusable?

I have a pretty standard OpenZeppelin crowdsale. Now the issue is that I want to be able to use one crowdsale contract with multiple (~100) different ERC20 tokens. Ideally I want to put the ...
1
vote
1answer
45 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 ...
1
vote
1answer
277 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 ...
1
vote
2answers
416 views

Get address of internal transaction using Ganache

I am deploying a Crowdsale contract locally, using truffle and ganache. The problem is, that the MintableToken is created during the deployment of the Crowdsale contract, using the ...
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 ...