feat: approve max
This commit is contained in:
committed by
GitHub
parent
8c41a28aa8
commit
cb6d165e7f
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user