From cb6d165e7f901ee16a8848361a22bcb613b83c69 Mon Sep 17 00:00:00 2001 From: Harsh Vardhan Roy <42067944+royvardhan@users.noreply.github.com> Date: Tue, 28 Jan 2025 23:49:28 +0530 Subject: [PATCH] feat: approve max --- foundry/src/executors/BalancerV2Executor.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundry/src/executors/BalancerV2Executor.sol b/foundry/src/executors/BalancerV2Executor.sol index dfd0be7..79777cb 100644 --- a/foundry/src/executors/BalancerV2Executor.sol +++ b/foundry/src/executors/BalancerV2Executor.sol @@ -34,7 +34,7 @@ contract BalancerV2Executor is IExecutor { if (needsApproval) { // slither-disable-next-line unused-return - tokenIn.approve(VAULT, givenAmount); + tokenIn.approve(VAULT, type(uint256).max); } IVault.SingleSwap memory singleSwap = IVault.SingleSwap({