I have just tested it and it works fine, I had 1500 points bought a rock paper scissors one, now i have 1000 points left, redeemed it and used a extra 500, I lost now I have 500 points.
why you won 40 was because you first spent 10 now you added 10 more totaling 20, you won so double your bet 20 is 40