Skip to content

Commit

Permalink
feat: support new uniswap v2 deployments on altchains (#875)
Browse files Browse the repository at this point in the history
* feat: support new uniswap v2 deployments on altchains

* chore: `black .`

* fix: use checksummed addr

* fix: use checksummed addr

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
BobTheBuidler and github-actions[bot] authored Jan 22, 2025
1 parent 3e973ab commit 39dac3e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions y/prices/dex/uniswap/v2_forks.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
# "kyber": {"factory": "0x833e4083B7ae46CeA85695c4f7ed25CDAd8886dE", "router": "0x1c87257f5e8609940bc751a07bb085bb7f8cdbe6"}
},
Network.BinanceSmartChain: {
"uniswap v2": {
"factory": "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6",
"router": "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
},
"pancakeswapv2": {
"factory": "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",
"router": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
Expand Down Expand Up @@ -122,6 +126,10 @@
},
},
Network.Polygon: {
"uniswap v2": {
"factory": "0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C",
"router": "0xedf6066a2b290C185783862C7F4776A2C8077AD1",
},
"quickswap": {
"factory": "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",
"router": "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff",
Expand Down Expand Up @@ -226,6 +234,10 @@
},
},
Network.Avalanche: {
"uniswap v2": {
"factory": "0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C",
"router": "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
},
"pangolin": {
"factory": "0xefa94DE7a4656D787667C749f7E1223D71E9FD88",
"router": "0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106",
Expand Down Expand Up @@ -260,6 +272,10 @@
},
},
Network.Arbitrum: {
"uniswap v2": {
"factory": "0xf1D7CC64Fb4452F05c498126312eBE29f30Fbcf9",
"router": "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
},
"sushiswap": {
"factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4",
"router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",
Expand Down Expand Up @@ -300,6 +316,10 @@
},
},
Network.Optimism: {
"uniswap v2": {
"factory": "0x0c3c1c532F1e39EdF36BE9Fe0bE1410313E074Bf",
"router": "0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2",
},
"zipswap": {
"factory": "0x8BCeDD62DD46F1A76F8A1633d4f5B76e0CDa521E",
"router": "0xE6Df0BB08e5A97b40B21950a0A51b94c4DbA0Ff6",
Expand All @@ -321,6 +341,10 @@
},
},
Network.Base: {
"uniswap v2": {
"factory": "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6",
"router": "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
},
"sushiswap": {
"factory": "0x71524B4f93c58fcbF659783284E38825f0622859",
"router": "0x6BDED42c6DA8FBf0d2bA55B2fa120C5e0c8D7891",
Expand Down

0 comments on commit 39dac3e

Please sign in to comment.