Jump to content

Dice has invalid win chance limits


toohoola

Featured Comment

Posted

You can not set the win chance to lower than 1.01. If you try to, then you only get a tooltip that says "Win chance must be 0.01% or greater"

If you want to play with high payout, then you have to change the payout itself, you cannot change the win chance.

Line #12 here: ./src/games/Dice/components/WinChance/helpers.js

    case number < 1.01:
      return <FormattedMessage {...messages.winChanceGreaterThan} />;

It should be 0.01, or a slightly smaller number due to floating-point arithmetic.

I think line #14 is wrong as well, because the payout limit is 1.005 which is more than 98 win chance:

    case number > 97.5:
      return <FormattedMessage {...messages.winChanceLessThan} />;

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

Privacy Policy Terms of Use