@ -2474,9 +2474,12 @@ uint ScaleQuantity(uint amount, int cf, int fine)
// apply scale factor
if(cf<0){
// approx (amount / 2^cf)
// adjust with a constant offset of {(2 ^ cf) - 1} (i.e. add cf * 1-bits) before dividing to ensure that it doesn't become zero
// when allow_trunc is false: adjust with a constant offset of {(2 ^ cf) - 1} (i.e. add cf * 1-bits) before dividing to ensure that it doesn't become zero
// this skews the curve a little so that isn't entirely exponential, but will still decrease
amount=(amount+((1<<-cf)-1))>>-cf;
// when allow_trunc is true: adjust with a randomised offset