fix: Forge fmt (after updating local foundry)
Took 6 minutes
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user