Update contracts/mainnet/connectors/uniswap_v3_erc20/main.sol

Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
Samyak Jain 2021-06-08 00:21:31 +05:30 committed by GitHub
parent 9b69841fec
commit 2476cc4390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ abstract contract AuthorityResolver is Events, Helpers {
_token0.safeAllowance(address(pool), amount0In);
}
if (amount1In > 0) {
IERC20 _token1 = pool.token0();
IERC20 _token1 = pool.token1();
convertEthToWeth(address(_token1) == wethAddr, TokenInterface(address(_token1)), amount1In);
_token1.safeAllowance(address(pool), amount1In);
}