Questions tagged [crowdsale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
302 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
608 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
378 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
225 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
416 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
397 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
385 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 ...
0
votes
1answer
218 views

Accessing Deployed Token methods (containing modifiers) from a Separate Crowdsale contract

Is it possible to deploy the Token contract (T) & CrowdSale contract (S) separately and still be possible to access (T)'s modifier protected methods from (S). Code of (T) contract Token { ...
0
votes
1answer
433 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
2answers
300 views

Resell or Refund the tokens after the ICO ends

I have 2 questions about ICO: 1.What are the available methods to resell the tokens after the ICO ends? 2.Can the user return the tokens after the ICO ends and get a refund? For example they buy X ...
0
votes
1answer
258 views

BalanceOf from BasicToken & totalSupply from ERC20Basic not working from Crowdsale.sol

I'm using Crowdsale.sol from OpenZeppelin / zeppelin-solidity. Here's a snippet: import '../token/MintableToken.sol'; import '../math/SafeMath.sol'; /** * @title Crowdsale * @dev Crowdsale is a ...
0
votes
2answers
366 views

I am trying to develop an ICO using Etheroll's as a template. Why won't it compile?

Please see here, line 13 is not compiling in Mist. Can anyone help me understand what is going wrong? You can see that it worked, obviously, for Etheroll when they performed their ICO. https://...
0
votes
0answers
15 views

My Crowdsale contract wont transfer ERC20 tokens and all transactions fail

I have a crowdsale contract that recieves tokens directly from a mint function in my token contract.the function mints the tokens and sends its to the Crowdsale account address. when I run let token = ...
0
votes
0answers
15 views

Ether Transaction failed to crowdsale contract

I have deployed a token on ropsten. it works and i can transfer tokens. Now i deployed crowdsale contract but when i send ether to crowdsale contract the transaction fails. I am using remix and ...
0
votes
2answers
35 views

“VM Exception while processing transaction: revert” in Truffle test and Truffle dev

this is my problem :) Issue "Error: Returned error: VM Exception while processing transaction: revert" when reaching the Transfer function. I think it is related to the fact that my Crowdsale smart ...
0
votes
1answer
53 views

Openzeppelin Crowdsale

Ok so Ive found Openzeppelin a slightly easier Code to use, it explains better than Solidity does. But now my problem is the Math bit. Im no mathematician neither and cannot get my head around how it ...
0
votes
0answers
21 views

Token transfer lock after crowdsale

I am faced with a problem regarding the ICO and Token smart contracts (SCs). I am currently using OpenZeppelin SCs to create my token and ICO and everything is working fine. Now I would like to add a ...
0
votes
1answer
37 views

Zepellin Crowsale buyTokens error

I'm trying to use the buyTokens function of the Zepellin Crowsale interface, but this gives me an error, without any log to be able to debug contract TokenA is MintableToken, PausableToken, ...
0
votes
1answer
695 views

error: VM Exception while processing transaction: revert SafeMath: subtraction overflow on migrating crowdsale conract

I am developing the token sale Dapp using openzepplin-solidity version 2.3. While migrating, I got the following error. Returned error: VM Exception while processing transaction: revert SafeMath:...
0
votes
1answer
62 views

What DSAuthority(0) and eos.owner() means and does?

In ERC20 EOS crowdsale contract, what these three lines(469-471) does? function initialize(DSToken eos) auth { assert(address(EOS) == address(0)); //[Someone explained this line here][...
0
votes
1answer
18 views

Is it likely to receive more token airdrops to one of the original Ethereum addresses from the crowdsale?

Is it likely to receive more token airdrops to one of the original Ethereum addresses from the crowdsale? Hi there, I participated in the original Ethereum crowdsale and I used to store a certain ...
0
votes
0answers
53 views

Issue in understanding Crowsale in the ICO contract

I want to create a token and run an ICO but all this without the function of crowdsale and minting. It want it to be a token which has a strict initial suplly (exmpl 1M) and without the funtion of ...
0
votes
2answers
92 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 ...
0
votes
1answer
351 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... ......
0
votes
1answer
195 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
133 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/...
0
votes
1answer
107 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) ...
0
votes
2answers
178 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
54 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
159 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
60 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 ...
0
votes
1answer
109 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
0answers
53 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, get ...
0
votes
0answers
71 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
38 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
970 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
94 views

Adding mincap in the crowdsale code and returning the funds on not reaching the goal

I have generated a crowdsale contract and i want to add mincap to the crowdsale so that after reaching the mincap and not achieving the goal, the crowdsale will return all the funds to the investors. ...
0
votes
1answer
128 views

Question regarding ether cost of each token in crowdsale contract on ethereum.org

Is someone please able to clarify if I wanted 1000 tokens to be issued for 1 ether then what would I enter the price value in the contract. function Crowdsale( address ifSuccessfulSendTo, ...
0
votes
2answers
131 views

How do I make sure that no one else deploy crowdsale on my token except me?

I have ERC20 fixed amount token, And I want to deploy pre-ICO crowdsale and later ICO crowdsale contracts. How do I make sure that no one else deploy crowdsale on my token except me?
0
votes
1answer
120 views

unsold token in a crowdsale ethereum

I'm new in the solidity coding. I'm trying to retrieve the unsold tokens from a crowdsale contract. I add the command tokenReward.transfer(beneficiary, amountRaised); pragma solidity ^0.4.20; ...
0
votes
1answer
33 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 ...
0
votes
1answer
272 views

How can users call the functions of an ERC20 token that was created by another contract (within a crowdsale contract)?

Using Ethereum wallet if I create a token and deploy it I can then interact with it and use the functions of that token (e.g. transfering tokens). However, if I deploy a crowdsale contract and that ...
0
votes
1answer
662 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:/...
0
votes
2answers
33 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
207 views

Can't send ether to crowdsale contract (fail) + infinite gas bug on Remix

I'm a newbie trying to make a crowdsale contract in Ropsten (deployed a token contract very well before) but i meet some problems : I can't send ether to crowdsale contract, returning a fail status ...
0
votes
1answer
123 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 ...
0
votes
1answer
193 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
302 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 "...
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
2answers
486 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 ...