From 2a5c598ece3ba5f88c53c87db52b10422a37aae7 Mon Sep 17 00:00:00 2001 From: Vojtech Simetka Date: Tue, 28 Jun 2022 11:01:57 +0200 Subject: [PATCH] feat: reduce the minimal dai amount for the topup (#444) --- src/utils/wallet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/wallet.ts b/src/utils/wallet.ts index 832bbe9..a8ce633 100644 --- a/src/utils/wallet.ts +++ b/src/utils/wallet.ts @@ -59,9 +59,9 @@ export class ResolvedWallet { } public async transfer(destination: string, jsonRpcProvider: string): Promise { - const DUMMY_GAS_PRICE = '300000000000000' + const DUMMY_GAS_PRICE = '50000000000000' - if (this.bzz.toDecimal.gt(0.1)) { + if (this.bzz.toDecimal.gt(0.05)) { await Rpc.sendBzzTransaction(this.privateKey, destination, this.bzz.toString, jsonRpcProvider) await sleepMs(5_000) }