Skip to content

Commit

Permalink
feat: remove deltaL from allocate and deallocate
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Feb 23, 2024
1 parent 5229d6b commit c353233
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/interfaces/IDFMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -142,28 +142,23 @@ interface IDFMM {
* @param data An array of bytes used by the strategy contract.
* @return deltaX Amount of token X allocated into the pool.
* @return deltaY Amount of token Y allocated into the pool.
* @return deltaL Amount of liquidity received by the allocator.
*/
function allocate(
uint256 poolId,
bytes calldata data
)
external
payable
returns (uint256 deltaX, uint256 deltaY, uint256 deltaL);
) external payable returns (uint256 deltaX, uint256 deltaY);

/**
* @notice Deallocates liquidity from the pool `poolId`.
* @param poolId Id of the pool to deallocate liquidity from.
* @param data An array of bytes used by the strategy contract.
* @return deltaX Amount of token X deallocated from the pool.
* @return deltaY Amount of token Y deallocated from the pool.
* @return deltaL Amount of liquidity being deallocated.
*/
function deallocate(
uint256 poolId,
bytes calldata data
) external returns (uint256 deltaX, uint256 deltaY, uint256 deltaL);
) external returns (uint256 deltaX, uint256 deltaY);

/**
* @notice Swaps tokens into pool `poolId`.
Expand Down

0 comments on commit c353233

Please sign in to comment.