Questions tagged [crowdsale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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
1answer
50 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
512 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
2answers
157 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
0answers
46 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 ...
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 ...
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 = "...
2
votes
2answers
289 views

What is the most common 3rd party KYC provider to use for an ICO? [closed]

I am looking for some 3rd party KYC options to use for an ICO. What are the typical companies used by successful or respected ICOs? Also how do these companies work for KYC if the investor later ...
0
votes
0answers
27 views

Mintable crowdsale restriction issue

I'm working on the simple crowdsale contract and I'm trying to make a mintable token, so when an investor buys tokens, they are will be minted automatically. pragma solidity >=0.4.22 <0.6.0; ...
0
votes
1answer
176 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 ...
-1
votes
1answer
323 views

What is the problem with Transfer function?

Here, ERC20(token) - 'token' is given Undeclared identification issue, why? // low level token purchase function function buyTokens(address beneficiary) public payable { require(beneficiary != ...
3
votes
1answer
407 views

How do I Withdrawing ehter from crowdsale contract to my wallet?

problem: When the crowd sale ends the contract is funded with the ether contributed but it is not sent to the beneficiary address. How do I get the ether out of the contract so that it can be used by ...
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
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 ...
1
vote
1answer
45 views

Set rate for crowdsale after it has ended

The problem I am trying to solve is how to properly price an ICO. One idea would be to have 10 tokens available. Do the ICO and collect all the ETH. Then after the ICO has ended, divvy up the tokens ...
1
vote
0answers
58 views

How to get back the ownership from crowdsale?

When I started crowdsale, I transferred token ownership to the crowdsale contract. When the sale finished, I'd like to send back the ownership to token so that the next crowdsale will start. How can I ...
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
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 ...
1
vote
0answers
15 views

integrate icoengine into zeppelin crowdsale contract

I have the following functions // from https://github.com/eidoo/icoengine/blob/master/contracts/KYCBase.sol function buyTokens(uint64 buyerId, uint maxAmount, uint8 v, bytes32 r, bytes32 s) public ...
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
503 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://...
1
vote
1answer
56 views

Must token contract transfer all tokens to crowdsale contract before it can sell them?

I notice that on the standard tests for crowdsale contracts in Openzeppelin, they transfer the tokens from the Token contract to the Crowdsale Contract: context('once deployed', async function () { ...
1
vote
0answers
209 views

Token creation and crowdsale

I'm trying to create a token and a crowdsale on Rinkeby I managed to create both but when I want to send ethereum to the crowdsale I get an error: if you submit it may consume all the gas you ...
1
vote
1answer
46 views

I want to remove the timed aspect of this crowdsale contract and make it finalizable manually [closed]

Which lines do I remove and what do I replace them with to change this from a timed crowdsale contract into one I can end manually? pragma solidity ^0.4.18; interface token { function transfer(...
1
vote
1answer
290 views

Buy token function does not work in crowd-sale smart contract

I am new to ethereum block-chain. I created a crowd-sale and ERC20 smart contract and deployed on rinkeby test network. The ERC20 token transfer function working fine. But when I check functionality ...
0
votes
2answers
148 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
2answers
127 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
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
173 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 ...
1
vote
1answer
371 views

Ethereum Token Creation & Crowdsale Example

My goal is to create a token and sell it via the crowdsale contract. I used the examples: https://www.ethereum.org/token The code below is the exact same as on the ethereum homepage besides the ...
1
vote
1answer
42 views

Can't withdraw from Crowdsale multiple times

I'm using a crowdsale contract (listed below) and on Ropsten network I just set founding goal to 1ETH send it to crowdsale address and then I can withdraw to beneficiary address but when I send ETH a ...
2
votes
0answers
136 views

Send ERC20 Tokens from Fixed Supply Token Contract to TokenCrowdSale Contract

For ICO Crowd Sale I have created 2 contracts one is MyToken.sol & other is MyTokenCrowdSale.sol. MyToken.sol creates fixed supply ERC20 tokens. contract MyToken is DetailedERC20, StandardToken { ...
1
vote
1answer
438 views

Airdrop cost optimization

I am planning an airdrop of an ERC20 mintable token created through a crowdsale contract based on Open Zeppelin. Now what I am wondering, is what would be the cost effective way of adding an airdrop ...
2
votes
1answer
67 views

how to create a smart contract that receives funds, displays addresses that sent the funds?

function safeWithdrawal() public afterDeadline { if (!fundingGoalReached) { uint amount = balanceOf[msg.sender]; balanceOf[msg.sender] = 0; if (amount > 0) { ...
0
votes
1answer
90 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) ...
1
vote
1answer
30 views

Why am I not receiving '5 passing, 1 failing' after performing truffle test?

After running truffle test i get the following unexpected error: Zanes-iMac:riskxtoken zanemassey$ truffle test Using network 'development'. Compiling ./contracts/Migrations.sol... Compiling ./...
2
votes
1answer
213 views

Accepting bitcoin during crowdsale and making refund if soft cap not reached [closed]

I'm gonna make some api to allow my crowdsale to accept bitcoin, however I ran into a problem. Because I will make refunds if soft cap not reached. What the best way to refund everything that was ...
1
vote
2answers
443 views

How to allow only the owner to transfer ERC20 tokens during crowdsale?

I recently came accross an ICO that used temp wallets. The tokens were sent to the investors manually which means that not everyone received their tokens at the same time. Until everyone received ...
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 ...
0
votes
1answer
49 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
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 ...
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 ...
4
votes
2answers
305 views

zeppelin-solidity Crowdsales Contract Not Working

I grab the smart contract example code from Zeppelin-Solidity GitHub https://github.com/OpenZeppelin/zeppelin-solidity I create and deploy the SimpleToken using EXACTLY the same code from the ...
0
votes
1answer
151 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
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: ...
2
votes
1answer
160 views

TimedCrowdsale.sol does not implement all functions and thus cannot be created

I found success in deploying Crowdsale.sol on ropsten testnet but I am finding trouble with TimedCrowdsale.sol I am using OpenZeppelin contracts of TimedCrowdsale.sol, SafeMath.sol, Crowdsale.sol, ...
0
votes
1answer
96 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 ...
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 ...
1
vote
0answers
139 views

Mix of Crowdsale contracts does not work. Completely lost :-/ [closed]

I am following this community for quite a bit and found some very helpful answers in the past, so I hope you can help me to solve a problem with my crowdsale contract as well. At first I would like ...
0
votes
0answers
50 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, ...