Skip to content

Commit

Permalink
Fix dispatch to include decr function, improve documentation on function
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Dec 11, 2024
1 parent 1eb096a commit c52cb80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/sol/ISeawaterExecutors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ interface ISeawaterExecutorAdmin is ISeawaterExecutorAdminExposed {
}

interface ISeawaterExecutorAdjustPosition {
/// @notice refreshes and takes a position's fees, and adds liquidity, preventing less than
/// the minimum from being taken.
/// @notice refreshes and takes a position's fees, and returns liquidity, preventing less than
/// the minimum from being taken to be sent to the user.
/// @param pool of the token to use
/// @param id the id of the position
/// @param amount0Min minimum of amount0 to take from the user
Expand Down
4 changes: 3 additions & 1 deletion pkg/sol/SeawaterAMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,9 @@ contract SeawaterAMM is ISeawaterAMM {
uint256 /* amount1Min */,
uint256 /* amount0Desired */,
uint256 /* amount1Desired */
) external returns (uint256, uint256);
) external returns (uint256, uint256) {
directDelegate(_getExecutorAdjustPosition());
}

function setExecutorSwap(address a) external onlyProxyAdmin {
StorageSlot.getAddressSlot(EXECUTOR_SWAP_SLOT).value = a;
Expand Down

0 comments on commit c52cb80

Please sign in to comment.