Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [crowdsale]

The tag has no usage guidance.

72 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
383 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 ...
Subir's user avatar
  • 41
3 votes
1 answer
166 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 ...
Tim Vermeulen's user avatar
2 votes
0 answers
588 views

How to Implement a Time-Locked Crowd sale with Multiple Vesting Schedule and Token Distribution for an ERC20 token PreICO, ICO & PostICO stages

I am working on a ERC20 token crowd sale project. The token distribution and vesting schedule is a little bit complicated. So Here is the scenario: Total Supply: 1,000,000,000 Token Distribution: ...
AllJs's user avatar
  • 135
2 votes
0 answers
260 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 { ...
rajit's user avatar
  • 21
2 votes
0 answers
58 views

What is the reason for make a wallet with 1 token during ICO?

Because of my inexperience, I don't understand why (I guess for security reasons) contract owner of a crowdsale split its tokens over several owners, one of them with a 1 token only. For example ...
Simon Orro's user avatar
2 votes
1 answer
684 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 ...
Guru's user avatar
  • 21
2 votes
0 answers
445 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 ...
Adi Mugri's user avatar
2 votes
0 answers
1k views

How to access Token functions in remix.ethereum.org?

I'm looking at Crowdsale.sol from OpenZeppelin / zeppelin-solidity. Here's a snippet: import '../token/MintableToken.sol'; contract Crowdsale { MintableToken public token; After I create the ...
Curt's user avatar
  • 307
2 votes
0 answers
1k views

Crowdsale smart contract

We need a template of a fully workable crowdsale contract It should be with the time frame and we should specify rate and the wallet where all raised funds will go
Alex V's user avatar
  • 41
1 vote
1 answer
115 views

creation of TokenCrowdsale errored: Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

I have an erc20 token and I want to create a crowd sale contract for it on Binance smart chain the token is deployed successfully but when I try to transact crowdsale then am having the error. Please ...
Syed Murtaza's user avatar
1 vote
1 answer
312 views

Crowdsale - Invalid implicit conversion from contract IERC20 to contract ERC20 requested

I am using ^0.8.0 version of solidity compiler and trying to add crowdsale smart contract pragma solidity ^0.8.0; import "./Crowdsale.sol"; contract MyTokenSale is Crowdsale { ...
Mariia Synelnyk's user avatar
1 vote
0 answers
31 views

Crowdsale contract problem

I want to do that if another token arrives on a contract, it can be taken out by the other token. function withdrawTeamSale() public { require(IBEP20(address(this)).transferFrom(msg.sender, ...
Grecz Balázs's user avatar
1 vote
1 answer
85 views

Can I send ETH to an Smart Contract address?

I'm developing an Smart Contract based in the Openzeppelin's Crowdsale one. When I test the Crowdsale Smart Contract manually, sending ETH with metamask, the SC returns me the correct amount of tokens....
Alexander Herranz's user avatar
1 vote
1 answer
266 views

Sell function but with accepting only another erc20 token, not eth

I want to sell my token (PRO TOKEN) to users in my presale, but I dont want people to send ETH or any other crypto to buy from my smart contract. I want people to buy my PRO TOKEN by sending ...
HiddenGemsss's user avatar
1 vote
0 answers
112 views

InternalCompilerError: Compiled contract not found. Contracts are correctly pointed to

Environment OpenZeppelin 2.5.1 Truffle v5.2.4 (core: 5.2.4) Node v15.11.0 Details Inheriting the PostDeliveryCrowdsale into my crowdsale contract fails to compile as can be seen below, this only ...
Sptz's user avatar
  • 11
1 vote
1 answer
653 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 ...
Ascii124's user avatar
1 vote
1 answer
73 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 (...
Ben Hagel's user avatar
  • 121
1 vote
0 answers
21 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 ...
Rudrika's user avatar
  • 407
1 vote
0 answers
110 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 ...
Unha Back's user avatar
1 vote
0 answers
26 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 ...
saniales's user avatar
  • 111
1 vote
0 answers
317 views

check msg.data in crowdsale contract, but the msg.data.length is zero

pragma solidity ^0.4.18; import 'zeppelin-solidity/contracts/math/SafeMath.sol'; import 'zeppelin-solidity/contracts/token/ERC20/ERC20.sol'; import '../util/BytesLib.sol'; contract Crowdsale { ...
Allen Shen's user avatar
1 vote
0 answers
241 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 ...
Thomas Sxt's user avatar
1 vote
0 answers
636 views

How to mint tokens before crowdsale

I want to make a crowdsale with pre-ICO and ICO, so people can swap tokens directly by sending to the smart-contract. The pre-Ico should have a certain rate for the swap and the ICO should have a ...
SSB's user avatar
  • 11
1 vote
0 answers
78 views

My basic crowdsale smartcontract does not work

I am new to ethereum and blockchain, I want to create a crowdsale/ICO. I followed ethereum website basic instruction. When I tried to test from testnet a transaction from my own account it shows some ...
Clément Fontaine's user avatar
1 vote
3 answers
806 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 ...
John Murphy's user avatar
1 vote
1 answer
283 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 ...
Phil's user avatar
  • 34
1 vote
0 answers
595 views

Token and Crowdsale contracts address problem

I'm testing the creation and deployment of ERC20 token + Crowdsale based on Open Zeppelin on the Rinkeby testnet using Truffle + Geth. The deployment went fine it seems, and through Metamask I was ...
Julien's user avatar
  • 246
1 vote
0 answers
233 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 ...
user22194's user avatar
1 vote
0 answers
488 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 ...
berlinguyinca's user avatar
1 vote
0 answers
100 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 ...
Jessie James Suarez's user avatar
1 vote
1 answer
490 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. ...
Ogx's user avatar
  • 11
1 vote
0 answers
375 views

Capping Token Sale

How does one have a capped crowdsale? This is my code so far contract CrowdsaleToken is StandardToken{ string public constant name = "TestCoin"; string public constant symbol = "TCC"; uint public ...
Shah Rukh Khan's user avatar
0 votes
1 answer
121 views

What's a good way to implement multiple rates into Crowdsale?

i am trying to deploy an allowance crowdsale contract, I have it working just fine. But I have multiple rates depending on the amount of ETH that is sent to the contract. I have deployed 3 different ...
BigMadcode's user avatar
0 votes
1 answer
63 views

Deploying AllowanceCrowdsale with Chainlink Pricefeed problem

I am new to Solidity and lost how i can acomplish to integrate the Chainlink Pricefeed into the OpenZepellin 2.5.0 AllowanceCrowdsale contract. What i have got so far: The Crowdsale contract: pragma ...
girax's user avatar
  • 1
0 votes
1 answer
95 views

Is it possible to create a crowdsale contract that instead of eth/bnb to buy tokens, token will be use to buy tokens?

Is it possible to create a crowdsale contract that instead of eth/bnb to buy tokens, token will be use to buy tokens? like swap token to token? This is my crowdsale contract: // SPDX-License-...
Lar's user avatar
  • 1
0 votes
0 answers
185 views

How do I create a crowdsale smart contract that has maximum buy amount

I wrote a code for a crowdsale smart contract. Code is below: // SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.8.0; contract Context { constructor () internal { } // solhint-...
Iammrjude1's user avatar
0 votes
1 answer
54 views

I am Getting DeclarationError : undeclared identifier function setEndTime(uint _endTime) public onlyOwner

pragma solidity ^0.5.0; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/dfbdb11605bab94df6a6b864afc1a068e94a67cc/contracts/crowdsale/Crowdsale.sol"; import "https://...
dprof's user avatar
  • 1
0 votes
0 answers
65 views

How do I pick up Ether after Crowdsale? And other questions

Testnet: Rinkeby Address token: 0xeAD7ACF95b260E4C866a036F9E792759Ba0Ad4ce Address Crowdsale:0xf2D4B282CE60A0abBE7fb74C694A9A04087E5519 Ethers credited at the end of Crowdsale: ...
Genry's user avatar
  • 1
0 votes
1 answer
269 views

Why is my Crowdsale Contract not letting me buy?

Good day, I have designed a mintable token that has a max supply, I now want to sell that token in a Crowdsale. I created the crowdsale contract, set the token address, transffered the funds... but ...
AvocadoChocolate's user avatar
0 votes
3 answers
68 views

How to get token address inside a crowdsale contract, if you create separate migration files?

To expand on the question, I have created an erc20 token contract, & a crowdsale contract. For each file, I intend to create separate migration files. How can i get the token address for reference ...
BlockDev's user avatar
0 votes
0 answers
45 views

What does this solidity code do in crowdsale contract?

Trying to level up on my solidity skills. I understand most of the crowdsale contract except these lines balances[teamWallet] = 3000 ether; emit Transfer(address(0x0), teamWallet, (3000 ether))...
AvocadoChocolate's user avatar
0 votes
1 answer
712 views

How to resolving this "Uncaught (in promise) TypeError"

I have a problem running npm run dev when I create a crowd sale project reference yt: Dapp University this my app.js code: App = { web3Provider: null, contracts: {}, account: '0x0', loading: ...
Imam Ash Shidqi's user avatar
0 votes
0 answers
173 views

Transaction error thrown with Vyper smart contract in MetaMask

I am trying to troubleshoot a problem I'm having with a crowdsale contract (written in Vyper). The contract compiles fine, and I can deploy the contract to Rinkeby without any problems, however when I ...
phantalune's user avatar
0 votes
1 answer
1k views

Warning! Error encountered during contract execution [execution reverted]

I have an ERC20 Mintable+Burnable Token created on solidity 6.11 and a sale contract on solidity 5.0 I am getting error when i send ETH to the sale contract. https://rinkeby.etherscan.io/tx/...
VagueRumi's user avatar
0 votes
2 answers
3k 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 ...
Alexis Rin's user avatar
0 votes
0 answers
452 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 ...
Hackeerrrr's user avatar
0 votes
1 answer
61 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, ...
user7362292's user avatar
0 votes
1 answer
36 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 ...
Vesa's user avatar
  • 1,322
0 votes
0 answers
130 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 ...
Krzysztof Ukleja's user avatar
0 votes
1 answer
1k 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... ......
Unha Back's user avatar