CryptoGnome / LimitSwap

LimitSwap is fully functional DeFi Trading Bot. No fees. You just need to hold LIMIT Utility token in your wallet to use.
https://www.limitswap.com/
278 stars 150 forks source link

ValueError: {'code': -32000, 'message': 'execution reverted'} #270

Closed singinsammy closed 3 years ago

singinsammy commented 3 years ago

Running version 13.14, just downloaded today, Thursday June 17.

I couldn't tell what was wrong by looking over the error message.

Luckily, when I looked over the bot's commands (in the exe window), I noticed that the error occurred immediately after attempting to verify the contract. I had mistakenly entered the master chef contract. Once I replaced that with the token contract, it worked exactly right. I don't have a screenshot of the bot running because I closed the screen before restarting

ValueError: {'code': -32000, 'message': 'execution reverted'}

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "LimitSwap.py", line 744, in run File "LimitSwap.py", line 442, in preapprove File "LimitSwap.py", line 320, in check_approval File "web3\contract.py", line 954, in call File "web3\contract.py", line 1499, in call_contract_function File "eth_utils\functional.py", line 45, in inner File "web3\eth.py", line 432, in call File "web3\manager.py", line 153, in request_blocking ValueError: {'code': -32000, 'message': 'execution reverted'} ERROR: 2021-06-17 21:35:05,679 {'code': -32000, 'message': 'execution reverted'} Traceback (most recent call last): File "LimitSwap.py", line 744, in run File "LimitSwap.py", line 442, in preapprove File "LimitSwap.py", line 320, in check_approval File "web3\contract.py", line 954, in call File "web3\contract.py", line 1499, in call_contract_function File "eth_utils\functional.py", line 45, in inner File "web3\eth.py", line 432, in call File "web3\manager.py", line 153, in request_blocking ValueError: {'code': -32000, 'message': 'execution reverted'}