### Add Liquidity with Solidity

\::: info This page is a work in progress
\:::

The following code snippet shows how to add liquidity from a smart contract.

\::: warning Queries should not be used onchain to set minAmountOut due to possible manipulation via frontrunning.
\:::

<GithubCode url="https://raw.githubusercontent.com/MattPereira/v3-pool-operation-examples/refs/heads/main/scripts/foundry/add-liquidity/AddLiquidityUnbalanced.s.sol" />
