- add integration test - cannot directly call _handleCallback from the locked method of the tycho router because of bytes memory to bytes callback conversion - Rename to EkuboPoolKey because of conflict with USV4 pool key - Bonus: fix bug where input token to swap method must be ERC20 (we should also support ETH)
16 lines
498 B
Solidity
16 lines
498 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.8.26;
|
|
|
|
import {IFlashAccountant} from "./IFlashAccountant.sol";
|
|
import {EkuboPoolKey} from "../types/poolKey.sol";
|
|
import {SqrtRatio} from "../types/sqrtRatio.sol";
|
|
|
|
interface ICore is IFlashAccountant {
|
|
function swap_611415377(
|
|
EkuboPoolKey memory poolKey,
|
|
int128 amount,
|
|
bool isToken1,
|
|
SqrtRatio sqrtRatioLimit,
|
|
uint256 skipAhead
|
|
) external payable returns (int128 delta0, int128 delta1);
|
|
} |