Questions tagged [crowdsale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
148 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
2answers
583 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
53 views

How to provide more tokens for the amount of ether you send in a crowd sales contract?

So I created an time ratio crowd sale contract based on a token with a set initial supply and no mint function. I publish this contract and then send the associated tokens to the contract. I can send ...
0
votes
1answer
2k views

How to use payable to receive ethers?

I'm new to the smart contracts. I want to create a contract which accepts ether and will transfer the equivalent tokens to the sender ether address (crowdsale). after few days research, i was written ...
0
votes
1answer
459 views

How To Add a Function In Contract

I created this very simple contract, but upon testing it, i found out that when there are no tokens to be sent when ether is recieved, the contract ceases to ether and theres no way to retrieve it. ...
0
votes
1answer
174 views

ERC20 Crowdsale, Tokens per ether

I am using the zeppelin-solidity. Where is the setting how many tokens you receive for 1 Ether? And where can I set my Ether account as the receiver account? Thanks
0
votes
1answer
347 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 ...
0
votes
1answer
114 views

Verified smart contract says beneficiary and token address 0x0000

I just deployed a token crowdsale contract here https://ropsten.etherscan.io/address/0x043acaa777f3e08d0b25d48c899a681a7a17db37#readContract When I read smart contract, the tokenReward and ...
0
votes
1answer
395 views

(node:207476) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):

Here is where error appears: > Using network 'ropsten'. > > Running migration: 1_initial_migration.js Deploying Migrations... > ... ...
0
votes
1answer
475 views

using existing token into a crowdsale

i'm trying to test a crowdsale with a already existing token with fixed supply. I have my token already in place and everything is working just fine if i used the account to transfer my tokens but i ...
0
votes
1answer
408 views

Can someone explein me this Multi mint function (Solidity)?

I came accross this function to mint token for a crowdsale but I don't understand the meaning of the bit shift operations and what bit array should represent.. what is this code doing ? The code can ...
0
votes
1answer
626 views

Crowdsale Tokens

Saw your question about holding of tokens in a crowdsale, and now see its better that ICO contract holds all the tokens. Appreciate your help. How do I allocate all the tokens in owners wallet to the ...
0
votes
1answer
418 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 ...
0
votes
1answer
230 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, ...
0
votes
1answer
435 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 ...
0
votes
1answer
403 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
391 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 ...
0
votes
1answer
222 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 { ...
0
votes
1answer
468 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 ...
0
votes
2answers
311 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 ...
0
votes
1answer
293 views

BalanceOf from BasicToken & totalSupply from ERC20Basic not working from Crowdsale.sol

I'm using Crowdsale.sol from OpenZeppelin / zeppelin-solidity. Here's a snippet: import '../token/MintableToken.sol'; import '../math/SafeMath.sol'; /** * @title Crowdsale * @dev Crowdsale is a ...
0
votes
2answers
375 views

I am trying to develop an ICO using Etheroll's as a template. Why won't it compile?

Please see here, line 13 is not compiling in Mist. Can anyone help me understand what is going wrong? You can see that it worked, obviously, for Etheroll when they performed their ICO. https://...
0
votes
0answers
34 views

Error in ERC20 Token transfer from Crowdsale contract

These are the steps I followed: approve admin for 2 B spending. transfer 2 B out of 10 B to MyCrowdsale contract using transferFrom() function approve 2 B spending for MyCrowdsale contract set the ...
0
votes
0answers
17 views

Crowdsale smart contract frontend creation

I wanted to make a front end webpage for buyflamecoin function in my crowdsale smart contract. Crowd sale contract link : https://bscscan.com/address/0x959a4c2980ee9541b7359a1ab67b3b963c33ab93 Can ...
0
votes
0answers
42 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-...
0
votes
1answer
8 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://...
0
votes
0answers
39 views

Create crowdsale contract with newer version solidity of token contract

I have created token contract with solidity ver. ^0.8.0 and now I want create crowdsale contract. Is there a way to combine crowdsale contract (solidity version 0.8.0) with token contract crowdsale (...
0
votes
0answers
41 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: ...
0
votes
1answer
63 views

How can I test my purchase function on the truffle with chai?

I'm trying to test my token buying function but I encounter an error, o facilitate understanding I will show the code "Error: Returned error: VM Exception while processing transaction: revert&...
0
votes
1answer
144 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 ...
0
votes
1answer
99 views

Deploying Crowdsale.sol - Error

In order to enable purchases of MyToken, where do I include the RATE (token/ETH) such as the below code from Openzeppelin docs on crowdsales into my deploy_contract.js or MyToken.sol? And how to ...
0
votes
3answers
28 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 ...
0
votes
0answers
34 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))...
0
votes
1answer
86 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: ...
0
votes
0answers
83 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 ...
0
votes
1answer
849 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/...
0
votes
2answers
594 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 ...
0
votes
1answer
452 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 ...
0
votes
0answers
114 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 ...
0
votes
1answer
53 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
2k 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
1answer
73 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
25 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 ...
0
votes
0answers
90 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 ...
0
votes
1answer
710 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
336 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
2answers
165 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
154 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) ...
0
votes
3answers
220 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
63 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 ...