Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1554b30

Browse filesBrowse files
authored
fix: fee argument not respected in make_trade_output (#306)
1 parent 3554749 commit 1554b30
Copy full SHA for 1554b30

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎uniswap/uniswap.py

Copy file name to clipboardExpand all lines: uniswap/uniswap.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def make_trade_output(
507507

508508
if input_token == ETH_ADDRESS:
509509
balance = self.get_eth_balance()
510-
need = self._get_eth_token_output_price(output_token, qty)
510+
need = self._get_eth_token_output_price(output_token, qty, fee)
511511
if balance < need:
512512
raise InsufficientBalance(balance, need)
513513
return self._eth_to_token_swap_output(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.