Um... Wonder why it's `double amount` and not `uint64_t amount`. Think it'd be better to change the variable type.