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

Optimism#176

Unanswered
ToposFinance asked this question inQ&A
Oct 8, 2021· 2 comments
Discussion options

Hi, dumb question, shouldn't uniswap-python work with Uniswap's support of Optimism L2? I've tried and getting an error (maybe there's something wrong in my optimism-based provider).

You must be logged in to vote

Replies: 2 comments

Comment options

ah, I see in constants.py there's no optimism, I guess.

_netid_to_name = {
1: "mainnet",
3: "ropsten",
4: "rinkeby",
42: "kovan",
56: "binance",
97: "binance_testnet",
137: "polygon",
100: "xdai",
}

You must be logged in to vote
0 replies
Comment options

anyway, adding 10:"optimism", to constant.py seems to work but anywhere in the code where one is getting "ETH" address you need to change to "ETH" address on Optimism. and of course the other tokens will Optimism-based addresses. the other addresses of Uniswap V3 remain the same.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@ToposFinance

[8]ページ先頭

©2009-2025 Movatter.jp