fixed rounding error on send amount

This commit is contained in:
Ulf Gebhardt 2022-02-24 23:27:00 +01:00
parent c9145d8ada
commit c266d58358
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -287,7 +287,7 @@ export class TransactionResolver {
throw new Error('invalid recipient public key')
}
const centAmount = Math.trunc(amount * 10000)
const centAmount = Math.round(amount * 10000)
const queryRunner = getConnection().createQueryRunner()
await queryRunner.connect()