Skip to content

Commit

Permalink
chore: comment out unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pegahcarter committed Feb 16, 2024
1 parent a1a2710 commit d33ee37
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/contracts/periphery/FraxswapRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,12 @@ contract FraxswapRouter {
{
// scope to avoid stack too deep errors
(
uint256 reserveInput,
uint256 reserveOutput,
uint256 reserveInput, // uint256 reserveOutput
,
uint256 twammReserveInput,
uint256 twammReserveOutput
) = FraxswapRouterLibrary.getReservesWithTwamm(factory, input, output);

) = // uint256 twammReserveOutput
FraxswapRouterLibrary.getReservesWithTwamm(factory, input, output);
amountInput = IERC20(input).balanceOf(address(pair)) - reserveInput - twammReserveInput;
amountOutput = pair.getAmountOut(amountInput, input);
}
Expand Down Expand Up @@ -455,19 +456,11 @@ contract FraxswapRouter {
return FraxswapRouterLibrary.quote(amountA, reserveA, reserveB);
}

function getAmountOut(
uint256 amountIn,
uint256 reserveIn,
uint256 reserveOut
) public pure virtual returns (uint256 amountOut) {
function getAmountOut(uint256, uint256, uint256) public pure virtual returns (uint256) {
revert("Deprecated: Use getAmountsOut"); // depends on the fee of the pool
}

function getAmountIn(
uint256 amountOut,
uint256 reserveIn,
uint256 reserveOut
) public pure virtual returns (uint256 amountIn) {
function getAmountIn(uint256, uint256, uint256) public pure virtual returns (uint256) {
revert("Deprecated: Use getAmountsIn"); // depends on the fee of the pool
}

Expand Down

0 comments on commit d33ee37

Please sign in to comment.