Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: the v3 core factory for some chains #12

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

jsy1218
Copy link
Member

@jsy1218 jsy1218 commented Apr 19, 2024

I realized not every chain has the same v3 core factory address. From https://github.com/Uniswap/sdk-core/blob/main/src/addresses.ts, I see some chains have different addresses. I accidentally deployed quoter on Base with the default v3 core factory address, which is non-existent on Base.

I tried new deploy, and the new quoter can read the v3 factory

@jsy1218 jsy1218 self-assigned this Apr 19, 2024
@jsy1218 jsy1218 merged commit 16bc995 into master Apr 19, 2024
1 check passed
@jsy1218 jsy1218 deleted the jsy1218/fix-v3-factory-address-in-deploy-script branch April 19, 2024 03:42
jsy1218 added a commit to Uniswap/smart-order-router that referenced this pull request Apr 19, 2024
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
Big fix

- **What is the current behavior?** (You can also link to an open issue here)
Since shadow quoting in Base today (Uniswap/routing-api#598), the accuracy has been low:
![Screenshot 2024-04-18 at 9 52 46 PM](https://github.com/Uniswap/smart-order-router/assets/91580504/d2c18e04-1ae2-4ec7-adf3-0ebab0f0988b)

I used tenderly [simulation](https://www.tdly.co/shared/simulation/cf37f5ed-5eaf-49f6-b966-fc33c10e0748) to debug, then I noticed the computed pool address from the view-only quoter is non-existent on Base. I was using the wrong v3 core factory when deploying to Base. I already fixed that and re-deployed Uniswap/view-quoter-v3#12, but we also need to update the quoter deploy address in SOR, so that routing-api quote accuracy can go up on Base.

- **What is the new behavior (if this is a feature change)?**
Update [quoter](https://basescan.org/address/0x222cA98F00eD15B1faE10B61c277703a194cf5d2#code) address 

- **Other information**:
jsy1218 added a commit to Uniswap/smart-order-router that referenced this pull request May 9, 2024
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
Big fix

- **What is the current behavior?** (You can also link to an open issue here)
Since shadow quoting in Base today (Uniswap/routing-api#598), the accuracy has been low:
![Screenshot 2024-04-18 at 9 52 46 PM](https://github.com/Uniswap/smart-order-router/assets/91580504/d2c18e04-1ae2-4ec7-adf3-0ebab0f0988b)

I used tenderly [simulation](https://www.tdly.co/shared/simulation/cf37f5ed-5eaf-49f6-b966-fc33c10e0748) to debug, then I noticed the computed pool address from the view-only quoter is non-existent on Base. I was using the wrong v3 core factory when deploying to Base. I already fixed that and re-deployed Uniswap/view-quoter-v3#12, but we also need to update the quoter deploy address in SOR, so that routing-api quote accuracy can go up on Base.

- **What is the new behavior (if this is a feature change)?**
Update [quoter](https://basescan.org/address/0x222cA98F00eD15B1faE10B61c277703a194cf5d2#code) address 

- **Other information**:
jsy1218 added a commit to Uniswap/smart-order-router that referenced this pull request May 9, 2024
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
Big fix

- **What is the current behavior?** (You can also link to an open issue here)
Since shadow quoting in Base today (Uniswap/routing-api#598), the accuracy has been low:
![Screenshot 2024-04-18 at 9 52 46 PM](https://github.com/Uniswap/smart-order-router/assets/91580504/d2c18e04-1ae2-4ec7-adf3-0ebab0f0988b)

I used tenderly [simulation](https://www.tdly.co/shared/simulation/cf37f5ed-5eaf-49f6-b966-fc33c10e0748) to debug, then I noticed the computed pool address from the view-only quoter is non-existent on Base. I was using the wrong v3 core factory when deploying to Base. I already fixed that and re-deployed Uniswap/view-quoter-v3#12, but we also need to update the quoter deploy address in SOR, so that routing-api quote accuracy can go up on Base.

- **What is the new behavior (if this is a feature change)?**
Update [quoter](https://basescan.org/address/0x222cA98F00eD15B1faE10B61c277703a194cf5d2#code) address 

- **Other information**:
jsy1218 added a commit to Uniswap/smart-order-router that referenced this pull request May 10, 2024
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
Big fix

- **What is the current behavior?** (You can also link to an open issue here)
Since shadow quoting in Base today (Uniswap/routing-api#598), the accuracy has been low:
![Screenshot 2024-04-18 at 9 52 46 PM](https://github.com/Uniswap/smart-order-router/assets/91580504/d2c18e04-1ae2-4ec7-adf3-0ebab0f0988b)

I used tenderly [simulation](https://www.tdly.co/shared/simulation/cf37f5ed-5eaf-49f6-b966-fc33c10e0748) to debug, then I noticed the computed pool address from the view-only quoter is non-existent on Base. I was using the wrong v3 core factory when deploying to Base. I already fixed that and re-deployed Uniswap/view-quoter-v3#12, but we also need to update the quoter deploy address in SOR, so that routing-api quote accuracy can go up on Base.

- **What is the new behavior (if this is a feature change)?**
Update [quoter](https://basescan.org/address/0x222cA98F00eD15B1faE10B61c277703a194cf5d2#code) address 

- **Other information**:
BitAI-dev pushed a commit to BitAI-dev/smart-order-router that referenced this pull request Jan 20, 2025
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
Big fix

- **What is the current behavior?** (You can also link to an open issue here)
Since shadow quoting in Base today (Uniswap/routing-api#598), the accuracy has been low:
![Screenshot 2024-04-18 at 9 52 46 PM](https://github.com/Uniswap/smart-order-router/assets/91580504/d2c18e04-1ae2-4ec7-adf3-0ebab0f0988b)

I used tenderly [simulation](https://www.tdly.co/shared/simulation/cf37f5ed-5eaf-49f6-b966-fc33c10e0748) to debug, then I noticed the computed pool address from the view-only quoter is non-existent on Base. I was using the wrong v3 core factory when deploying to Base. I already fixed that and re-deployed Uniswap/view-quoter-v3#12, but we also need to update the quoter deploy address in SOR, so that routing-api quote accuracy can go up on Base.

- **What is the new behavior (if this is a feature change)?**
Update [quoter](https://basescan.org/address/0x222cA98F00eD15B1faE10B61c277703a194cf5d2#code) address 

- **Other information**:
BitAI-dev pushed a commit to Taiki-ops/smart-order-router that referenced this pull request Jan 20, 2025
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
Big fix

- **What is the current behavior?** (You can also link to an open issue here)
Since shadow quoting in Base today (Uniswap/routing-api#598), the accuracy has been low:
![Screenshot 2024-04-18 at 9 52 46 PM](https://github.com/Uniswap/smart-order-router/assets/91580504/d2c18e04-1ae2-4ec7-adf3-0ebab0f0988b)

I used tenderly [simulation](https://www.tdly.co/shared/simulation/cf37f5ed-5eaf-49f6-b966-fc33c10e0748) to debug, then I noticed the computed pool address from the view-only quoter is non-existent on Base. I was using the wrong v3 core factory when deploying to Base. I already fixed that and re-deployed Uniswap/view-quoter-v3#12, but we also need to update the quoter deploy address in SOR, so that routing-api quote accuracy can go up on Base.

- **What is the new behavior (if this is a feature change)?**
Update [quoter](https://basescan.org/address/0x222cA98F00eD15B1faE10B61c277703a194cf5d2#code) address 

- **Other information**:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant