Questions tagged [crowdsale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
693 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
0answers
68 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
1answer
233 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
375 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
51 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; ...
0
votes
1answer
338 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
417 views

Generating tokens in a MiniMe token via the default sale contract throws an invalid opcode error

I'm building a crowdsale based on a MiniMeToken. During testing I ran into a really weird issue. Full runnable code repository can be found at https://github.com/roderik/truffle-issue Start testrpc ...
0
votes
1answer
220 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
146 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
838 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{...
0
votes
2answers
286 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?
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
89 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, ...
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 ...
-1
votes
2answers
94 views

Help on crowd sale contract

For a crowd sale contract can we use the etherscan API to identify the contributors and distribute the tokens, Also it will be great if someone can provide a sample contract to do the automatic ...
0
votes
1answer
226 views

what is meant by minted crowdsales?

I am new to ethereum smart contracts, I was going through minted crowdsale code for learning but couldn't figured out its use case or what is its purpose, precisely what does it mean? Any answer ...
1
vote
1answer
484 views

In the example Ethereum crowdsale contract, what is the safe withdrawal function?

By safe withdrawal, I mean if a crowdsale doesn't reach the target, what area of code sends the tokens back to investors. I'm really stumped. pragma solidity ^0.4.16; interface token { ...
1
vote
2answers
382 views

ICO crowdsale without smart contract

I see that there are some ICO who collect ETH without smart contract and would like to know the negatives and positives for such decision. Thank you
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 ...
0
votes
1answer
216 views

Buying tokens with OpenZepplin crowdsale

I am running into a very strange bug while interacting with my OpenZepplin crowdsale. Here is my repo for context https://github.com/GenusDev/crossfit-coin-backend Here is what I have working so far:...
1
vote
2answers
496 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 = ...
1
vote
0answers
160 views

check msg.data in crowdsale contract, but the msg.data.length is zero

pragma solidity ^0.4.18; import 'zeppelin-solidity/contracts/math/SafeMath.sol'; import 'zeppelin-solidity/contracts/token/ERC20/ERC20.sol'; import '../util/BytesLib.sol'; contract Crowdsale { ...
0
votes
1answer
46 views

Crowdsale Contract Merged into Token Contract

Is it safe to have the Crowdsale and Token contract combined as one contract instead of two separate ones? Are there any drawbacks/advantages of doing this?
0
votes
1answer
30 views

Crowdsale creation using ethereum site

I been trying to create a crowdsale using this as (reference)[https://www.ethereum.org/crowdsale]. I have a doubt in this process (though I have tried it on test network multiple times but no success ...
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 ...
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
607 views

Transaction Error. Exception thrown in contract code. REVERT opcode when sending ETH to crowdsale

I wanted to follow the tutorial - https://blog.zeppelin.solutions/how-to-create-token-and-initial-coin-offering-contracts-using-truffle-openzeppelin-1b7a5dae99b6 - but there was a new release - https:/...
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,.. ...
0
votes
2answers
28 views

how to get how much eth adress put into crowdsale contract?

I want to write function to get how much eth address put into smart contract, how do I do that? im making erc20 token. edit: I meant that I want to get how much specific investor invested eth, ...
0
votes
1answer
28 views

Is there a way to let the user know why the contract transaction/function is failing?

For example, if a user is attempting to send below the minimum investment amount to a crowdsale contract, or if a user is sending above the maximum investment amount. Ethereum wallet just says "This ...
0
votes
3answers
1k views

How to make ERC20 tokens non-transferable until a certain date?

I want to create a token is not sellable or transferable until a specific date (so that only initial buyers can buy tokens, but they should not sell tokens until ICO is completed), what would be the ...
0
votes
1answer
120 views

Creating new tokens tutorial [closed]

I am following this tutorial about creating new tokens: https://hashnode.com/post/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts-cjcs8dfes00apmdwthw03c2jq it('one ETH should ...
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, ...
1
vote
0answers
464 views

How to mint tokens before crowdsale

I want to make a crowdsale with pre-ICO and ICO, so people can swap tokens directly by sending to the smart-contract. The pre-Ico should have a certain rate for the swap and the ICO should have a ...
1
vote
0answers
69 views

My basic crowdsale smartcontract does not work

I am new to ethereum and blockchain, I want to create a crowdsale/ICO. I followed ethereum website basic instruction. When I tried to test from testnet a transaction from my own account it shows some ...
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 ...
1
vote
1answer
196 views

Using a token deployed separately in zeppelin-solidity Crowdsale.sol contructor

How to bring already deployed token into zeppelin-solidity Crowdsale.sol contructor? The owner is the same. What should I use instead of the "Mintable _token" below? function Crowdsale(uint256 ...
0
votes
1answer
596 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 ...
0
votes
3answers
279 views

How can I code a crowdsale contract to send all unsold tokens to a specific address?

From my understanding of smart contracts it would seem that there is no way to set a specific function or action to trigger itself after a certain time, is this the case? Is the only way to allocate ...
1
vote
2answers
176 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 ...
1
vote
1answer
437 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 ...
0
votes
1answer
237 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
702 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 ...
0
votes
1answer
180 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 ...
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
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
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
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, ...