Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [crowdsale]

The tag has no usage guidance.

1
vote
1answer
16 views

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

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(...
0
votes
1answer
28 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
49 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
35 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
40 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
1answer
46 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
0answers
45 views

Crowdsale Contract reverting transactions

i made a Crowdsale contract and a token to go with it. when i tried using the crowdsale contract it reverted my transaction. before i used cappedcrowdsale.sol from openzeppelin it worked fine. i have ...
0
votes
2answers
59 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/...
1
vote
1answer
82 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
35 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 ...
1
vote
0answers
51 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 { ...
2
votes
1answer
33 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
24 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
21 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 ./...
0
votes
0answers
14 views

eth.org crowdsale contract not working propely, with remix and MetaMask

(A) We can't sent ETH tesnet to our "crowdsale" contract (similar to the eth.org one). Every Tx "fail" cbecause the contrat "thrown", Voir : https://rinkeby.etherscan.io/tx/...
0
votes
2answers
85 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
29 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
72 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
57 views

Basic Crowdsale Contract

I am learning solidy contract. Currnetly, I am working and test the feature of following crowdsale contract. https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v1.8.0/contracts/crowdsale/...
0
votes
1answer
41 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
49 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 ...
2
votes
1answer
71 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
0answers
19 views

UppsalaCrowdsale

Wanna to try UppsalaCrowdsale But i can not deploy it throw etherium wallet, it always have warnings. Tried use geth console, it was deployed with this command: var myContract = crowdsale.new(1, ...
0
votes
1answer
32 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
1answer
86 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
1answer
151 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
0answers
32 views

Crowdsale with manual token issuance by owner

I'm working with the OpenZeppelin solidity framework to run a crowdsale script. How would I be able to manually issue tokens for an offline buyer within the script? I created a new function to do this,...
0
votes
0answers
21 views

Crowdsale safeWithdrawal Failing

I've modified the default Ethereum crowdsale available on the homepage. I've tested it on the Rinkeby network & I am successfully funding the contract. However, when I attempt to withdraw the ...
1
vote
0answers
94 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
37 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, ...
0
votes
0answers
50 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
2answers
476 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
27 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
34 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
23 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; ...
1
vote
2answers
159 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
1answer
132 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 ...
1
vote
1answer
95 views

Tokensale whitelist UI

I am trying to design UI for a tokensale smart contract where all participants must be whitelisted before purchasing tokens. The participants submit their address via the UI form, but only the ...
0
votes
1answer
311 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{...
1
vote
1answer
427 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 ...
0
votes
2answers
198 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?
1
vote
1answer
55 views

Set Wallet Address to Crowdsale Address

I am using an openZepplin crowdsale contract which has the following constructor contract myContract is Crowdsale { function myContract ( uint256 _rate, address _wallet, ...
0
votes
1answer
27 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 ...
1
vote
1answer
349 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 ...
0
votes
1answer
134 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); ...
-1
votes
2answers
44 views

Help on crowd sale contract

For a crowd sale contract can we use the etherscan API to identify the contributors and distribute the tokens, Also it will be great if someone can provide a sample contract to do the automatic ...
1
vote
1answer
174 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
157 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 ...
2
votes
2answers
237 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
0answers
164 views

Deploying OpenZepplin Crowdsale solidity contract

I have a constract which inherits "TimedCrowdsale, MintedCrowdsale" from OpenZepplin. I can successfully deploy this contract onto my local Ganache, but I receive the following error when I attempt to ...