Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [crowdsale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
528 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 ...
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 { ...
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 -...
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 ...
0
votes
1answer
862 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
1answer
153 views

Token contract replacement

There is a token which already has holders and a smart contract which now should be updated. No other possibilities to replace a contract like proxy has been added, so I need to deploy a new version. ...
1
vote
1answer
215 views

Can't interact with Crowdsale contract

I'm testing a Crowdsale contract (C) which send tokens of an already deployed contract (T). The idea is to send an amount of tokens to C from T, and then selling them for Ether, but nothing is working,...
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?
0
votes
1answer
359 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 ...
2
votes
2answers
939 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 ...
1
vote
1answer
462 views

How KYC ICO check addresses during crowdsale?

I see more ICO are complying with KYC. I wonder what exactly means for the crowdsale smart contract. Is the latter rejecting eth coming from unregistered addresses? Then, how is this managed? With a ...
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
1answer
483 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 { ...
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 ...
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, ...
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 ...
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 ...
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
3answers
895 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
0answers
213 views

Cannot send ETH to crowdsale contract

my problem is that I cannot send ETH in Rinkeby testnet or truffle to this crowdsale smart contract. I have shared token and crowdsale contract. They compile both in Remix and Mist wallet. What could ...
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 = "...
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. ...
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 ...
1
vote
1answer
211 views

Where to place in Zeppelin crowdsale variables

In various tutorials and previous releases of zeppelin, variables like _rate were explicit in the code. Now, however, these are left in a function (SampleCrowdsale), and I'm not sure what I'm ...
1
vote
2answers
116 views

crowdsale deployed on testnet cannot receive ether from another test account

I deployed a smart contract for crowdsale that has a function of receiveETH(): function receiveETH(address beneficiary) internal { uint coinToSend = bonus(msg.value.mul(COIN_PER_ETHER).div(...
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 ...
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 ...
0
votes
1answer
213 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 { ...
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 ...
1
vote
1answer
72 views

Crowdsale not stoping

I'm trying to create a token sale for a colection. The idea is to restart the crowdsale everytime we grow funds to amplify the collection, the tokens are burnable to purchase items from the colection. ...
1
vote
1answer
101 views

Toggle crowdsale on/off and set new max caps

Hi i'm quite new to java and solidity, i was wondering how i could make a function in my crowdsale that only me as the owner of the contract could call at anytime to switch the crowdsale on and off, ...
1
vote
0answers
467 views

ICO - question regarding private network

my team and I have been working on developing an application, based on a private ethereum network, due to the high gas cost of our contracts on the main chain. Now we would like to proceed to the ...
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 ...
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
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
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 ...
0
votes
2answers
490 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
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
416 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 ...
1
vote
0answers
93 views

Ethereum Crowdsale Code in Parity not working

I followed the tutorial on How to do Crowdsales via ethereum.org using Parity. However, there is always an exception when I try to give Ether to the address of the crowdsale contract. any thoughts on ...
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 ...
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. ...
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 ...
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 ...
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 ...
0
votes
2answers
295 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 ...
1
vote
1answer
428 views

Could not withdraw tokens after crowd sale

I'm trying to implement smart contract for crowd sale and faced following problem. Firstly, I created test token here on Ethereum- using examples from OpenZeppelin framework and test CrowdSale ...
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 ...
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 ...