- Notifications
You must be signed in to change notification settings - Fork388
Open
Description
I use the following code to make trade,
USDC_value = 0.001
amount = int(USDC_value * 10 ** 6)
tx = uniswap_arb.make_trade(USDC_arb, eth, amount, Web3.toChecksumAddress(address), fee=3000)
then I get the following fault:
File "web3_utils\method_formatters.py", line 576, in raise_solidity_error_on_revert
raise ContractLogicError(response['error']['message'])
web3.exceptions.ContractLogicError: execution reverted: SPL
I change the fee value ,for example 5000, or else, then I get another fault:
File "web3_utils\method_formatters.py", line 564, in raise_solidity_error_on_revert
if data.startswith('Reverted '):
AttributeError: 'NoneType' object has no attribute 'startswith'
Plesae help support it. Thanks!