Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Bug) Dutch/Minted: whitelisted investor can't buy if decimals equals certain values #1025

Closed
dennis00010011b opened this issue Jul 9, 2018 · 0 comments

Comments

@dennis00010011b
Copy link

dennis00010011b commented Jul 9, 2018

Issue reproducible with decimals = 9,10

Issue isn't reproducible with decimals=16,18

Steps for reproduce:

  1. Create Dutch crowdsale with parameters:
    {
    "name": "scenarioDutchRopsten.json",
    "ticker": "test",
    "decimals": 10,
    "totalSupply":100,
    "walletAddress":"0x56B2e3C3cFf7f3921Dc2e0F8B8e20d1eEc29216b",
    "gasprice":50,
    "burnExcess":false,
    "tiers":[
    {
    "isWhitelisted":true,
    "startDate": "240000",
    "startTime": "240000",
    "endDate":"72000000",
    "endTime":"72000000",
    "minCap":11,
    "minRate":1000,
    "maxRate":10000,
    "supply": 100,
    "whitelist":[{
    "address": "0xDb0E42Ee8fDaAd8A7f295f447F71A1480c98a373",
    "min": 50,
    "max": 150
    } ]
    }]
    }
    (value of start/end time means adjustment in ms from the moment of filling the forms on Step3)

  2. Set whitelisted account in metamask

  3. Open Contribution page, wait until crowdsale starts

  4. Buy amount more than minCap ( ex. 75 tokens )

Expected result:

  • whitelisted investor should be able to buy allowed amount without issues

Actual result:

  • investor not able to buy
  • although one or more errors occured in transaction
  • wrong eth amount passes to metamask
  • error in browser's console

Transactions:
https://ropsten.etherscan.io/tx/0x977a541a655dc2c4d4d6c7fc775292b0c77a21dadb395cffb798aa9721ff1ca6
https://ropsten.etherscan.io/tx/0xd167b0d1a8cf145922ad0a53e7e9a8c330c611631262218abccbd8d5a0cf50d2

Which network did you use? (Mainnet, Kovan, Rinkeby, etc.)

Ropsten

If you were able to create it, what is the URL of your crowdsale?

ExecID: 0x81ad2053f41bc53918c3f6504dc38ccb5d225cc869dac19c8c30e35286bbd62e

Do you have screenshots showing the problem?

screen shot 2018-07-09 at 12 04 19

screen shot 2018-07-09 at 12 05 16

Do you see errors in the dev console? If yes, please include a screenshot

dutch-whitelist-decimals10.log


@dennis00010011b dennis00010011b changed the title (Bug) Dutch: whitelisted investor can't buy if decimals=10 (Bug) Dutch/Minted: whitelisted investor can't buy if decimals=10,9 Jul 9, 2018
@dennis00010011b dennis00010011b changed the title (Bug) Dutch/Minted: whitelisted investor can't buy if decimals=10,9 (Bug) Dutch/Minted: whitelisted investor can't buy if decimals equals certain values Jul 9, 2018
@vbaranov vbaranov self-assigned this Jul 10, 2018
@vbaranov vbaranov added this to the 2.0 milestone Jul 10, 2018
@ghost ghost removed the awaiting for review label Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants