Skip to content

Commit

Permalink
fix: recharging to diff
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Apr 3, 2024
1 parent 645e101 commit 76663fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/keyService.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { formatBN } from "@gearbox-protocol/sdk";
import { Mutex } from "async-mutex";
import type { providers } from "ethers";
import { Wallet } from "ethers";
import { BigNumber, Wallet } from "ethers";
import { Inject, Service } from "typedi";

import config from "../config";
Expand Down Expand Up @@ -87,7 +87,7 @@ export class KeyService {
try {
const receipt = await this.signer.sendTransaction({
to: address,
value: config.minExecutorBalance,
value: BigNumber.from(config.minExecutorBalance).sub(balance),
});
await receipt.wait();
this.log.debug(`recharged executor ${address}`);
Expand Down

0 comments on commit 76663fc

Please sign in to comment.