Hot answers tagged

1

Uniswap seems to have found a neat solution for this issue. Surround a part of your function with brackets: { // scope for _token{0,1}, avoids stack too deep errors address _token0 = token0; address _token1 = token1; require(to != _token0 && to != _token1, 'UniswapV2: INVALID_TO'); if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out);...


Only top voted, non community-wiki answers of a minimum length are eligible