Crowdsale set rate for 9 decimal

Hi guys ,

I would like to set a crowdsale where 1 eth = 100,000 tkn . I am struggling to do this with 9 decimals .

Any help would be appreciated

I am getting this error message once I set the rate to 10

Thank you

1 Like

Hi, welcome! :wave:

It seems like you are trying to do something in the scripts, right? Could you please share the part of the code of this issue, I think when you use the BigNumber, it should be 1000000000000000000000 rather than 1e21

1 Like

Hi sir,

Thanks for the help was able to solve this. by using enclosing the number in BN .
1 Like