Skip to content

Commit

Permalink
Fixed alphaswap abi conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
gweidart authored Mar 7, 2022
1 parent 7ac08f9 commit f38c69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AlphaBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3733,7 +3733,7 @@ def make_the_buy_exact_tokens(token_dict, inToken, outToken, buynumber, pwd, gas

if settings["EXCHANGE"].lower() == 'alphaswap':
printt_debug("make_the_buy_exact_tokens condition 1", write_to_log=True)
transaction = routerContract.functions.swapKCSForExactTokens(
transaction = routerContract.functions.swapETHForExactTokens(
amount,
[weth, outToken],
Web3.toChecksumAddress(walletused),
Expand Down Expand Up @@ -5413,4 +5413,4 @@ def runLoop():
nonce += 1
sleep(1)
if nonce > timeout:
runLoop()
runLoop()

0 comments on commit f38c69c

Please sign in to comment.