Skip to content

Commit 2f99c65

Browse files
authored
Merge pull request #11 from blocknative/fix/balance-module
Fix minimum balance comparison
2 parents d1aad9f + 607fffe commit 2f99c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/ready/balance.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function balance(minimum) {
22
return ({ balance, BigNumber }) => {
3-
// if balance is less than minimum (compare < 1)
4-
if (BigNumber(balance).lte(BigNumber(minimum || 0))) {
3+
// if balance is less than minimum
4+
if (BigNumber(balance).lt(BigNumber(minimum || 0))) {
55
return {
66
heading: "Get Some ETH",
77
description: `Your current account has less than the necessary minimum balance of ${BigNumber(

0 commit comments

Comments
 (0)