Skip to content

Commit 9c0ea8e

Browse files
committed
fix a current balance bug
1 parent 900f42e commit 9c0ea8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎uniswap/uniswap.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,8 +1345,8 @@ def mint_liquidity_raw_transaction(
13451345
balance_0 = self.get_token_balance(token_0)
13461346
balance_1 = self.get_token_balance(token_1)
13471347

1348-
assert balance_0 > amount_0, f"Have {balance_0}, need {amount_0}: {token_0}"
1349-
assert balance_1 > amount_1, f"Have {balance_1}, need {amount_1}: {token_1}"
1348+
assert balance_0 >= amount_0, f"Have {balance_0}, need {amount_0}: {token_0}"
1349+
assert balance_1 >= amount_1, f"Have {balance_1}, need {amount_1}: {token_1}"
13501350
else:
13511351
token_instance = _load_contract(self.w3, abi_name="erc20", address=erc20_address)
13521352
erc20_balance = self.get_token_balance(erc20_address)

0 commit comments

Comments
 (0)