Hello guys, I really need help.

There is a Network class I wrote to interact with each of the networks (ETH, BSC, ARB). It has a method that should swap the native coin of the network to the specified token in the specified network.

For V2 everything works fine, for V3 it always returns an error.

The method always returns the following exception: web3.exceptions.ContractLogicError: execution reverted

On the next line:
swap_tx = await method(args).build_transaction(tx)

Namely, in the build_transaction() method

Tested on BSC and PancakeSwap

Jun 12, 2023, 12:13 PM

© 2024 Draquery.com All rights reserved.