We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e835fac commit f275ee5Copy full SHA for f275ee5
1 file changed
typescript/keyfunder/src/core/KeyFunder.ts
@@ -260,6 +260,9 @@ export class KeyFunder {
260
const currentBalance = await this.multiProvider
261
.getProvider(chain)
262
.getBalance(address);
263
+ if (currentBalance.gte(desiredBalance)) {
264
+ return BigNumber.from(0);
265
+ }
266
const delta = desiredBalance.sub(currentBalance);
267
const minDelta = desiredBalance
268
.mul(MIN_DELTA_NUMERATOR)
0 commit comments