forge fmt
This commit is contained in:
@@ -33,7 +33,8 @@ contract EkuboExecutor is IExecutor, ILocker, IPayer {
|
|||||||
if (data.length < 92) revert EkuboExecutor__InvalidDataLength();
|
if (data.length < 92) revert EkuboExecutor__InvalidDataLength();
|
||||||
|
|
||||||
// amountIn must be at most type(int128).MAX
|
// 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 {
|
function locked(uint256) external coreOnly {
|
||||||
@@ -92,7 +93,10 @@ contract EkuboExecutor is IExecutor, ILocker, IPayer {
|
|||||||
SafeTransferLib.safeTransfer(token, address(core), amount);
|
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);
|
address target = address(core);
|
||||||
|
|
||||||
// slither-disable-next-line assembly
|
// slither-disable-next-line assembly
|
||||||
|
|||||||
@@ -1020,7 +1020,10 @@ contract TychoRouterTest is TychoRouterTestSetup {
|
|||||||
|
|
||||||
// TEMPORARY while the Ekubo executor address is hardcoded in TychoRouter
|
// 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
|
// 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);
|
deal(ALICE, 1 ether);
|
||||||
uint256 balancerBefore = IERC20(USDC_ADDR).balanceOf(ALICE);
|
uint256 balancerBefore = IERC20(USDC_ADDR).balanceOf(ALICE);
|
||||||
|
|||||||
Reference in New Issue
Block a user