Skip to content

Commit

Permalink
doc: removed done todo
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMist committed Aug 19, 2024
1 parent a591a1b commit 4d97f3a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pool-bin/BinRouterBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ abstract contract BinRouterBase is IBinRouterBase, DeltaResolver {

/// @notice Perform a swap that ensure at least `amountOut` tokens with `amountInMaximum` tokens
function _swapExactOutputSingle(BinSwapExactOutputSingleParams calldata params) internal {
//todo: verify if we should do a negation when we add test cases
uint128 amountIn = (
-_swapExactPrivate(params.poolKey, params.swapForY, params.amountOut.safeInt128(), params.hookData)
).toUint128();
Expand All @@ -89,7 +88,6 @@ abstract contract BinRouterBase is IBinRouterBase, DeltaResolver {
// find out poolKey and how much amountIn required to get amountOut
(PoolKey memory poolKey, bool swapForY) = pathKey.getPoolAndSwapDirection(currencyOut);

//todo: verify if we should do a negation when we add test cases
amountIn =
(-_swapExactPrivate(poolKey, !swapForY, amountOut.safeInt128(), pathKey.hookData)).toUint128();

Expand Down

0 comments on commit 4d97f3a

Please sign in to comment.