### Remove Liquidity with Solidity

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

The following code snippet shows how to remove 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/remove-liquidity/RemoveLiquidityProportional.s.sol"  />
