diff --git a/pkg/sol/ISeawaterExecutors.sol b/pkg/sol/ISeawaterExecutors.sol index 343445d2..7169ff9e 100644 --- a/pkg/sol/ISeawaterExecutors.sol +++ b/pkg/sol/ISeawaterExecutors.sol @@ -101,6 +101,10 @@ interface ISeawaterExecutorQuote { } interface ISeawaterExecutorPosition { + struct CollectResult { + uint128 amount0; + uint128 amount1; + } /// @notice creates a new position /// @param pool the pool to create the position on /// @param lower the lower tick of the position (for concentrated liquidity) @@ -142,8 +146,8 @@ interface ISeawaterExecutorPosition { /// @param ids to claim the positions of function collect7F21947C( address[] memory pools, - uint256[] memory ids - ) external returns (uint128, uint128); + uint256[] memory ids + ) external returns (CollectResult[] memory); } interface ISeawaterExecutorUpdatePosition { diff --git a/pkg/sol/SeawaterAMM.sol b/pkg/sol/SeawaterAMM.sol index 65a4b082..a26d7660 100644 --- a/pkg/sol/SeawaterAMM.sol +++ b/pkg/sol/SeawaterAMM.sol @@ -382,7 +382,7 @@ contract SeawaterAMM is ISeawaterAMM { function collect7F21947C( address[] memory /* pools */, uint256[] memory /* ids */ - ) external returns (uint128, uint128) { + ) external returns (CollectResult[] memory) { directDelegate(_getExecutorPosition()); }