Revert "change amount from double to int"

This reverts commit 7fec058e384abc299983179b64f11e9c3bca8ffd.