Skip to content

Commit

Permalink
update solidity collect return type to match stylus contract
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jul 18, 2024
1 parent ded9f2a commit 1b0bc9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions pkg/sol/ISeawaterExecutors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sol/SeawaterAMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 1b0bc9c

Please sign in to comment.