You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sdk/v3/guides/swaps/01-quoting.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ const USDC_TOKEN = new Token(
118
118
119
119
These constants are used in the `config.ts` file, as mentioned in the Introduction.
120
120
121
-
We can find the Pool Factory Contract address for our chain [here](../../../../contracts/v3/reference/Deployments.md).
121
+
We can find the Pool Factory Contract address for our chain [here](../../../../contracts/v3/reference/deployments/deployments.md).
122
122
123
123
## Referencing the Pool contract and fetching metadata
124
124
@@ -234,7 +234,7 @@ const quoterV2Contract = new ethers.Contract(
234
234
)
235
235
```
236
236
237
-
We get the QUOTE_V2_CONTRACT_ADDRESS for our chain from [V3 refrence deployments](../reference/deployments).
237
+
We get the QUOTE_V2_CONTRACT_ADDRESS for our chain from [V3 reference deployments](../../../../contracts/v3/reference/deployments/deployments.md).
238
238
239
239
We get access to the contract's ABI through the [@uniswap/v3-periphery](https://www.npmjs.com/package/@uniswap/v3-periphery) package, which holds the periphery smart contracts of the Uniswap V3 protocol:
To be able to spend the tokens of a wallet, a smart contract first needs to get an approval from that wallet.
160
160
ERC20 tokens have an `approve` function that accepts the address of the smart contract that we want to allow spending our tokens and the amount the smart contract should be allowed to spend.
161
161
162
-
We can get the **V3_SWAP_ROUTER_ADDRESS** for our chain from [GitHub](https://github.com/Uniswap/v3-periphery/blob/main/deploys.md).
162
+
We can get the **V3_SWAP_ROUTER_ADDRESS** for our chain from the `SwapRouter02` field in [Deployments](../../../../contracts/v3/reference/deployments/deployments.md).
163
163
Keep in mind that different chains might have **different deployment addresses** for the same contracts.
164
164
The deployment address for local forks of a network are the same as in the network you forked, so for a **fork of mainnet** it would be the address for **Mainnet**.
0 commit comments