Skip to content

Commit

Permalink
Implement EIP 1559 on AVAX
Browse files Browse the repository at this point in the history
  • Loading branch information
tsarbuig committed Mar 7, 2022
1 parent a675fc7 commit 07780c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LimitSwap.py
Original file line number Diff line number Diff line change
Expand Up @@ -4888,7 +4888,7 @@ def sell(token_dict, inToken, outToken):

if fees.lower() == 'true':
# HASFEES = true
if settings["EXCHANGE"].lower() == 'uniswap' or settings["EXCHANGE"].lower() == 'uniswaptestnet':
if settings["EXCHANGE"].lower() == 'uniswap' or settings["EXCHANGE"].lower() == 'uniswaptestnet' or settings["EXCHANGE"].lower() == 'pangolin' or settings["EXCHANGE"].lower() == 'traderjoe':
# Special condition on Uniswap, to implement EIP-1559
printt_debug("sell condition 16", write_to_log=True)
transaction = routerContract.functions.swapExactTokensForTokensSupportingFeeOnTransferTokens(
Expand All @@ -4901,7 +4901,7 @@ def sell(token_dict, inToken, outToken):
'maxFeePerGas': Web3.toWei(gas, 'gwei'),
'maxPriorityFeePerGas': Web3.toWei(gaspriority, 'gwei'),
'gas': gaslimit,
'value': amount,
'value': 0,
'from': Web3.toChecksumAddress(settings['WALLETADDRESS']),
'nonce': client.eth.getTransactionCount(settings['WALLETADDRESS']),
'type': "0x02"
Expand Down

0 comments on commit 07780c5

Please sign in to comment.