Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit8a96c07

Browse files
committed
fix: removed unused code
1 parent27ca688 commit8a96c07

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

‎uniswap/uniswap.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,21 +1480,6 @@ def _get_tx_params(
14801480
ifgas:
14811481
params["gas"]=gas
14821482

1483-
if"gasPrice"notinparams:
1484-
gasPrice=self.w3.eth.generate_gas_price()
1485-
ifgasPriceisnotNone:
1486-
params["gasPrice"]=gasPrice
1487-
1488-
# if gasPrice still not set, use maxFeePerGas and maxPriorityFeePerGas
1489-
# TODO: Don't hard-code
1490-
if"gasPrice"notinparams:
1491-
params["maxFeePerGas"]=Wei(200*1_000_000_000)# 200 gwei
1492-
params["maxPriorityFeePerGas"]=Wei(self.w3.eth.max_priority_fee)
1493-
1494-
# Set chainId if not set
1495-
if"chainId"notinparams:
1496-
params["chainId"]=self.netid
1497-
14981483
returnparams
14991484

15001485
# ------ Price Calculation Utils ---------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp