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
0
votes
1answer
56 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
3answers
331 views

What is the right approach to implement payable fallback function in crowdsale contract?

I am implementing crowdsale smart contract to accept ether and invoke ERC20 smart contract to assign tokens count calculated depending on the amount of ether invested. I heard that just implementing ...
0
votes
2answers
124 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
2answers
80 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
20 views

How to get tokens for crowdsale from the main token contract

Trying to deal with ethereum contracts using openzeppelin examples and remix. There is a token contract deployed in the test network pragma solidity ^0.5.0; import "./ERC20.sol"; import "./...
0
votes
1answer
78 views

Refundable Crowdsale

I am trying to create a contract for crowdsale using OpenZeppelin lib. I have imported everything necessary to the contract and initialized everything properly, but when I am trying to deposit funds ...
0
votes
2answers
66 views

Remix: This contract does not implement all functions and thus cannot be created

I'm new here and code with openzeppelin framework 2.2.0. There is no error occurred when compiling with solidity 0.5.8. But when I'm going to deploy the contract, I have no bytecode and cannot ...
0
votes
1answer
254 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
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 (...
0
votes
1answer
26 views

Using an ERC20 crowdsale for a non-Ethereum based coin

I am confused as to how a crowdsale works. If in a crowdsale, people give their Ethereum to a new coin to be entered in a smart contract. Doesn't that mean that the receiving end of the contract (...
0
votes
1answer
120 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
3answers
106 views

Crowdsale tokens count is not reducing even user gets the tokens to his account

I had created 100 million tokens and created a contract for crowdsale in test network If user sends a 1 ether using contract address i am able to receive 1 ether and send 1000 tokens to user who send ...
0
votes
1answer
96 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; ...
1
vote
1answer
243 views

ICO Token sale payment process

How can one start selling their coins on their custom website for ETH and Bitcoin? I was checking bunnytoken.com, they have very simple payment process script, which includes referral solution. ...
0
votes
1answer
28 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
183 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
2answers
488 views

View contract details in a Django application

I'm trying to create Crowdsale using Ethereum. I've done everything from Token creation, to DAO creation, to Crowdsale creation in Ethereum Wallet. Now, I want my web app (built in Django) to be able ...
0
votes
1answer
259 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 ...
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 ...
0
votes
1answer
480 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
394 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
3answers
894 views

How to link Standard Token with crowdsale in Zeppelin Solidity

Hello I am trying to create a crowdsale through zeppelin solidity but the main issue is it doesn't provide a way to link standard token with pre-allocated supply with the crowdsale. pragma solidity ^...
1
vote
1answer
400 views

How can I display amount ETH funded and ICO-token received on a webpage

How can I display amount ETH funded and ICO Tokens received on a webpage in a crowdsale ICO campaign? The webpage is the personalised customer page after login. I will display the ethereum adress. ...
1
vote
1answer
3k views

How to fix “invalid argument 0: json: cannot unmarshal hex number with leading zero digits into Go struct field CallArgs.value of type *hexutil.Big”?

Using Remix and metamask, I have deployed a contract on the rinkeby network that contains a function that, when called will send unsold tokens to a specific address. The code for it is like this ...
0
votes
2answers
68 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 ...
1
vote
3answers
548 views

Using Openzeppelin's crowdsale contract as a base, how can I set the rate to be a decimal number?

For example if rate = 10 then for every wei the buyer gets 10 "token units" which are each 1*10^18 of a full token (as the default decimal for the erc20 token is 18). If I want the users in a ...
2
votes
2answers
879 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
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 ...
1
vote
1answer
433 views

Help with with Crowdsale contract?

I need your help. is anything wrong with this Crowdsale and CappedCrowdsale contracts? Basically, I enter timestamps, rate, address and cap amounts in Remix, click Create (RINKEBY). In InjectedWeb -...
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
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
3answers
350 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/...
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/...
0
votes
1answer
33 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
252 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
0answers
44 views

Accept different tokens for one specific token within the contract

Assuming I want to accept different (let's say 3 or 4) tokens on exchange one specific token (MyToken). Let's call this X transfer. I'm thinking to write ERC223 contract which will accept different ...
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 ...
0
votes
1answer
41 views

ERC20, how to calculate how many tokens for crowdsale?

If you look at this article, the total tokens for crowdsale is 100 tokens and defined in the code as uint256 public maxTokens = 100000000000000000000; how come 100000000000000000000 becomes 100 ...
1
vote
1answer
46 views

Remix error : Function declared as view but this (potentially) modifies state

i'm following a tutorial but now it is old, because was written more then 1 year ago, with 0.4.24 pragma and i also want upgrade this code. I got this error and i'm pretty sure to know why: view and ...
1
vote
1answer
37 views

Crowdsale, how to calculate hard cap?

I was reading this article about Crowdsale. Simply, 100 Tokens are to be minted. The author set 60% of tokens are distributed as public sale. To be more specific, 20 out of 60 tokens will be sold ...
1
vote
1answer
264 views

Implementation of an Allowance Crowdsale. Token Interface / _prevalidatePurchase-/_delivertokens-function

I am new to solidity coding and after I created some basic contracts as well as a ERC20 token contract I wanted to create a crowdsale contract. Now I am stuck and I have a question regarding the ...
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
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 ...
1
vote
3answers
259 views

How do ICOs with token price linked to fiat currency prices work?

So when I see most Crowdsale contracts the price is set to x ETH and you receive the tokens based on that, if ETH price is down you get more tokens/$ and when ETH price is up, you get less/$. That's ...
0
votes
2answers
325 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); ...
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 ...
1
vote
0answers
11 views

Is it possible to do vote and participate in crowd-sale using Forwarder address?

Currently, I am using Metamask (Ropsten TestNet). And I want to implement one voting cum crowd-sale process, the scenario is given below: Want to make the voting process in this if Voter is voted to ...
1
vote
2answers
415 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
1answer
489 views

How reliable is it to use Block number to calculate Time in Smart contract?

I have seen contracts use block numbers to manage when the crowdsale should start and stop. How reliable is this? I understand the average time in ethereum is 17secs between blocks, but can this be ...
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 ...