Jump to content
cryptsforum

Can't bet exactly 0.00000012

Recommended Posts

Also 13000 become 12999 or 30000 become 29999.

I noticed that in other bets but I can't remember which.

Share this post


Link to post
Share on other sites

It changes from 3 satoshi to 2 as well.

I've managed to locate the bug.

File: "./containers/Providers/Currency/currencies/helpers.js"
Line: 6-7

const formatTypeNoComma = (fixed: number) => (value: number) =>
  (Math.floor(value * 10 ** fixed) / 10 ** fixed).toFixed(fixed);

Changing the floor to round should fix the issue:

const formatTypeNoComma = (fixed: number) => (value: number) =>
  (Math.round(value * 10 ** fixed) / 10 ** fixed).toFixed(fixed);

 

Share this post


Link to post
Share on other sites

Thanks for the heads up guys, will fix this up now.

Share this post


Link to post
Share on other sites
20 minutes ago, Josh said:

Thanks for the heads up guys, will fix this up now.

Lol how are you going to fix it? :D 

Admins will look into the bug and fix it. Definitely not you.

EDIT: I just saw you are dev. Sorry about the mixup. All good now :D 

Edited by UltraChief

Share this post


Link to post
Share on other sites
11 minutes ago, UltraChief said:

Lol how are you going to fix it? :D 

Admins will look into the bug and fix it. Definitely not you.

Haha he's one of the developers. Just registered, I need to create a rank for them 😛

Josh has pushed an update to fix this issue which should hit the platform sometime today. Thanks for the information @toohoola

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×