Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

make trade issue for USDC to ETH #291

Open
Labels
bugSomething isn't working
@JeffXu1

Description

@JeffXu1

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp