Giter Club home page Giter Club logo

presale-contract's Introduction

Hi ๐Ÿ‘‹, I'm Freezy

Freezy's GitHub stats

freezyex

  • ๐Ÿ”ญ Iโ€™m currently working on something really cool

  • ๐ŸŒฑ Iโ€™m currently learning Node.js, Solidity and React

  • ๐Ÿ‘จโ€๐Ÿ’ป All of my projects are available at https://github.com/FreezyEx

  • ๐Ÿ“ซ How to reach me [email protected]

Connect with me:

freezydev freezydev

Languages and Tools:

git javascript linux nodejs react vscode solidity hardhat

freezyex

presale-contract's People

Contributors

freezyex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

presale-contract's Issues

"code": 3, "message": "execution reverted: Crowdsale: weiAmount is 0"

hi, how to fix this?
Internal JSON-RPC error. { "code": 3, "message": "execution reverted: Crowdsale: weiAmount is 0", "data": "0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001943726f776473616c653a20776569416d6f756e74206973203000000000000000" }

not working

hello, code is not working, always reverted, also there's wrong validations in the startICO function (softCap and minPurchase to be exact), it looks great but sadly it's broken, also SafeMath isn't required on Solidity 0.8+

The receive() function should check for contract supply too, because it just validate the date, not the available supply on contract.

Bnb stuck in presale address ?

Hello,

Thanks for contract we have issue everything works except bnb is not transferring to wallet address. Please help.

Gas Fee Calculation Error

Hi.
Meta Mask showing this error when buying token and start ico:
ALERT: Transaction Error. Exception thrown in contract code.

Not working

Hey thanks for the presale contract,

I successful deployed it but when ever I send bnb to the contract address it fails and no error is emitted please can you explain what I did wrong

My token details
decimal:- 8
hardcap:- 500000000000000000000 (500 bnb)
softcap:- 50000000000000000000 (50 bnb)
minbuy:- 1000000000000000 (0.001 bnb)
Maxbuy:- 1000000000000000000 (1 bnb)
rate:- 100000000000 (1000 token = 1 bnb)

Thanks for your help @FreezyEx

Error! Unable to generate Contract ByteCode and ABI

Hey FreezyEx,

I'm trying to deploy your ICO script and keep getting the following - Error! Unable to generate Contract ByteCode and ABI .

I was wondering if you know what causing this. I've looked online but so far haven't found any fix for this. I'd really like to use this to launch my token.

Thanks

Fail with error 'availableTokens should be > 0 and <= totalSupply'

Hey Freezy. I very much appreciate the help so far. I've got the presale contract deployed but when i go to start the ICO i get the following transaction error - Fail with error 'availableTokens should be > 0 and <= totalSupply' .

I set the following settings on deploy for the rate (5 Trill per bnb) , address, token address, etc.
5000000000000,0x5B9cED86ecDc2d859D8126A08E429f07d9B15409,0xa43c607c836c250f851a50c385d4d906ea829c66

On startICO I set the following

0 | endDate | uint256 | 1624238552 - (Jun 20 2021 20:22:32)

1 | _minPurchase | uint256 | 100000000000000000 - (equal to .1 ETH.BNB)

Not sure why it's giving me the availableTokens error as supply is 1 quadtrill. I've looked this up and down and i see no reason that they contract is seeing my token with zero tokens available. I've read through the code and I know it's happening in the code below but i see no reason for the error.

uint _availableTokens = _token.balanceOf(address(this));
require(_availableTokens > 0 && _availableTokens <= _token.totalSupply(), 'availableTokens should be > 0 and <= totalSupply')

Thanks

Mike

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.