Questions tagged [crowdsale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
504 views

Invalid implicit conversion from address to address payable requested

first of all really nice to find this forum, I'm starting coding Solidity. Here the problem I get compiling a template of crowdsale smart contract ExampleTokenCrowdsale.sol, from this tutorial. The ...
0
votes
1answer
502 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://...
0
votes
2answers
1k views

burn, freeze, unfreeze functions

I wonder what is the purpose of these functions? could you please provide me with some examples. function burn(uint256 _value) returns (bool success) { if (balanceOf[msg.sender] < _value) ...
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 ...
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
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
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
290 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
130 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"; ...
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
244 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 ...
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 ...
0
votes
1answer
529 views

Crowdsale - Balance declaration error

In this example, for some reasons, Balance is given Undeclared Identifier error in the Contract "HEY"....What are the problems? pragma solidity ^0.4.17; /** * @title ERC20Basic * @dev Simpler ...
0
votes
1answer
874 views

Error: VM Exception while processing transaction: invalid opcode

I'm testing out the crowdsale contract from https://ethereum.org/crowdsale on a local testrpc and I can't figure out how to send funds to it. As I understand it, the anonymous fallback function ...
0
votes
2answers
216 views

Send funds to owner after each buy or after several?

I copied and modified smart contracts from TenX and EOS. TenX sends funds to their wallet after every purchase from a buyer: function createTokens(address recipient) public isUnderHardCap saleIsOn ...
0
votes
1answer
341 views

Is that a need to add every investors to multisig wallet?

I read an article here, it mentioned that Another convention which has by now become a de facto requirement is collecting all contribution in a multi-signature escrow wallet, with all the names of ...
0
votes
2answers
1k views

How to transfer ETH from contract to external address after crowsale?

I am trying to learn creating smart contracts. For practice, I created token and crowdsale contracts by following the examples on ethereum.org and deployed it. Token distribution is working as ...
0
votes
1answer
174 views

Sell tokens to a contract and burn them after

The goal is to make a crowdsale smart contract where investors can buy tokens (no cap, no initial supply, all tokens are minted) and sell them to a contract for some price (rate in my case). And I ...
0
votes
2answers
145 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
84 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
162 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
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
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
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
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 ...
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?
0
votes
2answers
46 views

How tokens in Crowdfunding gain their value?

From my understanding, if the crowdfunding is successful, all of the gathered ether is sent into the ICO wallet, meaning the contract is left without any ether. Doesn't that mean the token becomes ...
0
votes
2answers
338 views

How to give opening and closing time for contract in remix

I have implemented a timed crowdsale contract and it's constructor is like this: function NeoCrowdsale(uint256 _openingTime, uint256 _closingTime) public { require(_openingTime >= now); ...
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 ...
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:...
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
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
2answers
474 views

How do I implement a maximum investment limit in a crowdsale or ICO contract?

I have a crowdsale contract which creates tokens and assigns them to the crowdsale address. Investors can then send ether to the address and receive tokens from the crowdsale. In this case how can I ...
0
votes
1answer
132 views

crowdsale contract errors

Below is the script that i have written but i cannot run it, i get some messages( the order of the messages that I post is first the ones i get for the IERC20 and then for the AAAtoken), first is the ...
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 ...
0
votes
2answers
345 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 ...
0
votes
1answer
337 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
78 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
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
427 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
268 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
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
1answer
361 views

ERC20 Token not valid anymore (please help)

I am using remix.ethereum.org as my compiler. I have already done some tests with the token contract before, and it worked. but since a few days, on wallet.ethereum.org, when I add the token after ...
0
votes
1answer
221 views

Why the amount of time between each block creation is not exact?

I have seen that crowdsales are measured in blocks instead of time, but that there is an exact amount of blocks that represent a week or a month. If the time beetween blocks is not always the same, ...
0
votes
1answer
407 views

Open Zeppelin crowdsale requires too much gas

EDIT: we spotted the mistake in the code, endtime = starttime I deployed with truffle a subclass of zeppelin popular crowdsale contract GorillaSale is Crowdsale { function GorillaSale( uint256 ...
0
votes
1answer
393 views

How to get crowdsale info via API?

I need get info about crowdsale. By example, here, there is information about the number of tokens sold, Hardcap and so on. This information, as indicated on the site, is updated every 60 seconds. ...
0
votes
1answer
377 views

Would you recommend to use the standard token creation template from https://ethereum.org/token#the-coin?

I'm checking a lot of deployed ERC20 Token Contracts and haven't found one that uses the standard template https://ethereum.org/token#the-coin? May you please enlighten me why? Is there something ...