diff --git a/docs/integration-guides/guides/add-liquidity-to-pool.md b/docs/integration-guides/guides/add-liquidity-to-pool.md index 94ee26ac..6d5ee6d4 100644 --- a/docs/integration-guides/guides/add-liquidity-to-pool.md +++ b/docs/integration-guides/guides/add-liquidity-to-pool.md @@ -293,7 +293,7 @@ const tx = await router.addLiquidityUnbalanced( The following code snippet shows how to add liquidity from a smart contract. -::: warning Queries cannot be used within the same block to set minBptAmountOut due to possible manipulation +::: warning Queries should not be used onchain to set minAmountOut due to possible manipulation via frontrunning. ::: ```solidity diff --git a/docs/integration-guides/guides/remove-liquidity-from-pool.md b/docs/integration-guides/guides/remove-liquidity-from-pool.md index 8a473ef8..5ae3b654 100644 --- a/docs/integration-guides/guides/remove-liquidity-from-pool.md +++ b/docs/integration-guides/guides/remove-liquidity-from-pool.md @@ -303,7 +303,7 @@ const tx = await router.removeLiquidityProportional( The following code snippet shows how to remove liquidity from a smart contract. -::: warning Queries cannot be used within the same block to set minAmountsOut due to possible manipulation +::: warning Queries should not be used onchain to set minAmountOut due to possible manipulation via frontrunning. ::: ```solidity diff --git a/docs/integration-guides/guides/swapping-custom-paths-with-router.md b/docs/integration-guides/guides/swapping-custom-paths-with-router.md index 7626db89..1b454e24 100644 --- a/docs/integration-guides/guides/swapping-custom-paths-with-router.md +++ b/docs/integration-guides/guides/swapping-custom-paths-with-router.md @@ -354,7 +354,7 @@ const tx = await router.swapSingleTokenExactIn( #### Solidity -::: warning Queries cannot be used within the same block to set minAmountOut due to possible manipulation +::: warning Queries should not be used onchain to set minAmountOut due to possible manipulation via frontrunning. ::: ```solidity @@ -584,7 +584,7 @@ const tx = await router.swapExactIn( #### Solidity -::: warning Queries cannot be used within the same block to set minAmountOut due to possible manipulation +::: warning Queries should not be used onchain to set minAmountOut due to possible manipulation via frontrunning. ::: ```solidity diff --git a/docs/integration-guides/guides/swaps-for-aggregators.md b/docs/integration-guides/guides/swaps-for-aggregators.md index 9378b5e5..dcecae7f 100644 --- a/docs/integration-guides/guides/swaps-for-aggregators.md +++ b/docs/integration-guides/guides/swaps-for-aggregators.md @@ -58,7 +58,7 @@ swapFeePercentage = [Queries](../../concepts/router/queries.md) provide the ability to simulate an operation and find its result without executing a transaction. Balancer Routers provide a query for all state changing liquidity operations including single and multi-path swap functions, e.g. `querySwapSingleTokenExactIn`. The following sections link to examples showing how queries can be used. -::: warning Note - for onchain integrations queries cannot be used to set limits within the same block due to possible manipulation +::: warning Note - for onchain integrations queries should not be used to set limits due to possible manipulation via frontrunning. ::: ### Single Swaps