remove requirement for amounts to be integers.
this is why you dont copy-paste example code.