ive been playing a little and i noticed this earlier. my base bet is 57 sats as youll see and when i lose its taking 58sats from me? pretty sure thats not supposed to happen.
ive been playing a little and i noticed this earlier. my base bet is 57 sats as youll see and when i lose its taking 58sats from me? pretty sure thats not supposed to happen.
Could it be some kind of rounding error on the multiplier? I admit, it looks like an error to me too.
There shouldn't be any multiplier applied - when you lose, you lose 100% of your stake. But it does look like a floating point rounding error.
That's what I was thinking too!
you would know better than most of us, all i know is its a bug that needs fixed. and it wasnt just on 1 bet it was multiple bets which can be verified by saw dice admin when they log in. all they gotta do is check the bet history on the account
58 is just a display error it was because the browser did a rounding to the nearest 8 decimal places but it was 57 in the bet calculations and this view problem is fixed now and to be more sure you can recheck the bet id and the server seed and client seed with the verify system on the site and u will see it as 57 not 58
@yahoo62278, if this is fixed correctly, it seems like your balance should have changed as well.
@sawdice, probably best to move your code to calculate with Satoshis as the base unit---that's what all the bitcoin wallets I've looked at do under the hood. Obviously you'll still need to represent sometimes as a float because of your floating point multipliers, but if Satoshis are the unit, you shouldn't be having issues of a browser rounding you to the nearest one like you're seeing here.