forge fmt

This commit is contained in:
die-herdplatte
2025-04-03 00:42:10 +07:00
parent 4e34f45bf4
commit 5540503a59
2 changed files with 10 additions and 3 deletions

View File

@@ -33,7 +33,8 @@ contract EkuboExecutor is IExecutor, ILocker, IPayer {
if (data.length < 92) revert EkuboExecutor__InvalidDataLength();
// amountIn must be at most type(int128).MAX
calculatedAmount = uint256(_lock(bytes.concat(bytes16(uint128(amountIn)), data)));
calculatedAmount =
uint256(_lock(bytes.concat(bytes16(uint128(amountIn)), data)));
}
function locked(uint256) external coreOnly {
@@ -92,7 +93,10 @@ contract EkuboExecutor is IExecutor, ILocker, IPayer {
SafeTransferLib.safeTransfer(token, address(core), amount);
}
function _lock(bytes memory data) internal returns (uint128 swappedAmount) {
function _lock(bytes memory data)
internal
returns (uint128 swappedAmount)
{
address target = address(core);
// slither-disable-next-line assembly

View File

@@ -1020,7 +1020,10 @@ contract TychoRouterTest is TychoRouterTestSetup {
// TEMPORARY while the Ekubo executor address is hardcoded in TychoRouter
// This allows us to change the code at that address to be the testing executor code
vm.etch(0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279, 0x2a07706473244BC757E10F2a9E86fB532828afe3.code);
vm.etch(
0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279,
0x2a07706473244BC757E10F2a9E86fB532828afe3.code
);
deal(ALICE, 1 ether);
uint256 balancerBefore = IERC20(USDC_ADDR).balanceOf(ALICE);