diff --git a/foundry/src/TychoRouter.sol b/foundry/src/TychoRouter.sol index d67fba9..9698ff4 100644 --- a/foundry/src/TychoRouter.sol +++ b/foundry/src/TychoRouter.sol @@ -806,15 +806,15 @@ contract TychoRouter is /** * @dev Gets balance of a token for a given address. Supports both native ETH and ERC20 tokens. */ - // forgefmt: disable-start function _balanceOf(address token, address owner) internal view returns (uint256) { - return - token == address(0) ? owner.balance : IERC20(token).balanceOf(owner); - }// forgefmt: disable-end + return token == address(0) + ? owner.balance + : IERC20(token).balanceOf(owner); + } /** * @dev Verifies that the expected amount of output tokens was received by the receiver. diff --git a/foundry/src/executors/CurveExecutor.sol b/foundry/src/executors/CurveExecutor.sol index 4fc12d5..7359587 100644 --- a/foundry/src/executors/CurveExecutor.sol +++ b/foundry/src/executors/CurveExecutor.sol @@ -93,10 +93,9 @@ contract CurveExecutor is IExecutor, RestrictTransferFrom { // crypto or llamma if (tokenIn == nativeToken || tokenOut == nativeToken) { // slither-disable-next-line arbitrary-send-eth - CryptoPoolETH(pool) - .exchange{ - value: ethAmount - }(uint256(int256(i)), uint256(int256(j)), amountIn, 0, true); + CryptoPoolETH(pool).exchange{value: ethAmount}( + uint256(int256(i)), uint256(int256(j)), amountIn, 0, true + ); } else { CryptoPool(pool) .exchange( diff --git a/foundry/test/TychoRouterSequentialSwap.t.sol b/foundry/test/TychoRouterSequentialSwap.t.sol index 3d842fe..80a0a30 100644 --- a/foundry/test/TychoRouterSequentialSwap.t.sol +++ b/foundry/test/TychoRouterSequentialSwap.t.sol @@ -216,9 +216,7 @@ contract TychoRouterSequentialSwapTest is TychoRouterTestSetup { ) ); - uint256 amountOut = tychoRouter.sequentialSwapPermit2{ - value: amountIn - }( + uint256 amountOut = tychoRouter.sequentialSwapPermit2{value: amountIn}( amountIn, address(0), USDC_ADDR, diff --git a/foundry/test/TychoRouterSingleSwap.t.sol b/foundry/test/TychoRouterSingleSwap.t.sol index 9b7974c..b3a55a3 100644 --- a/foundry/test/TychoRouterSingleSwap.t.sol +++ b/foundry/test/TychoRouterSingleSwap.t.sol @@ -222,9 +222,7 @@ contract TychoRouterSingleSwapTest is TychoRouterTestSetup { bytes memory swap = encodeSingleSwap(address(usv2Executor), protocolData); - uint256 amountOut = tychoRouter.singleSwapPermit2{ - value: amountIn - }( + uint256 amountOut = tychoRouter.singleSwapPermit2{value: amountIn}( amountIn, address(0), DAI_ADDR, diff --git a/foundry/test/TychoRouterSplitSwap.t.sol b/foundry/test/TychoRouterSplitSwap.t.sol index b350d30..c1df037 100644 --- a/foundry/test/TychoRouterSplitSwap.t.sol +++ b/foundry/test/TychoRouterSplitSwap.t.sol @@ -271,9 +271,7 @@ contract TychoRouterSplitSwapTest is TychoRouterTestSetup { bytes[] memory swaps = new bytes[](1); swaps[0] = swap; - uint256 amountOut = tychoRouter.splitSwapPermit2{ - value: amountIn - }( + uint256 amountOut = tychoRouter.splitSwapPermit2{value: amountIn}( amountIn, address(0), DAI_ADDR,