Skip to content

Commit f275ee5

Browse files
committed
CR: CR
1 parent e835fac commit f275ee5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

typescript/keyfunder/src/core/KeyFunder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ export class KeyFunder {
260260
const currentBalance = await this.multiProvider
261261
.getProvider(chain)
262262
.getBalance(address);
263+
if (currentBalance.gte(desiredBalance)) {
264+
return BigNumber.from(0);
265+
}
263266
const delta = desiredBalance.sub(currentBalance);
264267
const minDelta = desiredBalance
265268
.mul(MIN_DELTA_NUMERATOR)

0 commit comments

Comments
 (0)