# Mixed Route Quoter Exercises In this exercise, you'll learn how to use the [`MixedRouteQuoterV2`](https://github.com/Uniswap/mixed-quoter/blob/main/src/MixedRouteQuoterV2.sol) contract. ## Task 1 - `git clone` Git clone the repository [`mixed-quoter`](https://github.com/Uniswap/mixed-quoter/tree/main) ```shell git clone git@github.com:Uniswap/mixed-quoter.git ``` ## Task 2 - Install and compile the repository Inside `mixed-quoter` repository ```shell npm i forge build ``` ## Task 3 - Comment out enivorment variables Comment out the environment variables in [`foundry.toml`](https://github.com/Uniswap/mixed-quoter/blob/d576527bff2e7c9db5434bb2b3806fd184610865/foundry.toml#L12-L53) under `rpc_endpoints` and `etherscan`. These environment variables are not needed for this exercise. ## Task 4 - Copy `MixedRouteQuoterV2Example.sol` Copy [`MixedRouteQuoterV2Example.sol`](https://github.com/Cyfrin/defi-uniswap-v4/blob/main/foundry/exercises/MixedRouteQuoterV2Example.sol) into [`test`](https://github.com/Uniswap/mixed-quoter/tree/main/test) folder. ## Test Execute the test command inside the `mixed-quoter` repository. ```shell forge test --fork-url $FORK_URL --match-path test/MixedRouteQuoterV2Example.sol -vvv ```
In this exercise, you'll learn how to use the MixedRouteQuoterV2 contract.
git cloneGit clone the repository mixed-quoter
Inside mixed-quoter repository
Comment out the environment variables in foundry.toml under rpc_endpoints and etherscan.
These environment variables are not needed for this exercise.
MixedRouteQuoterV2Example.solCopy MixedRouteQuoterV2Example.sol into test folder.
Execute the test command inside the mixed-quoter repository.
Previous lesson
Previous
Next lesson
Next
Course Overview
About the course
Difference between Uniswap v3 and v4
Uniswap v4 PoolManager
Uniswap v4 Hooks
Uniswap v4 PositionManager
Uniswap v4 Universal Router
Uniswap v4 Singleton architecture and flash accounting
Uniswap v4 operations and lifecycle
Uniswap v4 multihopping and quoting
How to build a Uniswap v4 swap router
How to build a smart contract a liquidation bot executes
Last updated on November 6, 2025
Duration: 5min
Duration: 7min
Duration: 39min
Duration: 35min
Duration: 34min
Duration: 31min
Course Overview
About the course
Difference between Uniswap v3 and v4
Uniswap v4 PoolManager
Uniswap v4 Hooks
Uniswap v4 PositionManager
Uniswap v4 Universal Router
Uniswap v4 Singleton architecture and flash accounting
Uniswap v4 operations and lifecycle
Uniswap v4 multihopping and quoting
How to build a Uniswap v4 swap router
How to build a smart contract a liquidation bot executes
Last updated on November 6, 2025