From 3342a0c46a03c227b288a28ffea7f48566d3accc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20W=C5=82odarczyk?= Date: Mon, 20 Apr 2020 22:09:11 +0200 Subject: [PATCH] Fix gas price calculations --- src/blockchain/network.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockchain/network.ts b/src/blockchain/network.ts index 6d74592a..230ccb2d 100644 --- a/src/blockchain/network.ts +++ b/src/blockchain/network.ts @@ -118,7 +118,7 @@ export type GasPrice$ = Observable export const gasPrice$: GasPrice$ = onEveryBlock$.pipe( switchMap(() => bindNodeCallback(web3.eth.getGasPrice)()), map((x) => new BigNumber(x)), - map((x) => x.multipliedBy(1.25)), + map((x) => x.multipliedBy(1.25).decimalPlaces(0, 0)), distinctUntilChanged((x: BigNumber, y: BigNumber) => x.eq(y)), shareReplay(1), )