mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/mainnet/connectors/uniswap_v3_erc20/main.sol
Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
parent
9b69841fec
commit
2476cc4390
|
@ -36,7 +36,7 @@ abstract contract AuthorityResolver is Events, Helpers {
|
||||||
_token0.safeAllowance(address(pool), amount0In);
|
_token0.safeAllowance(address(pool), amount0In);
|
||||||
}
|
}
|
||||||
if (amount1In > 0) {
|
if (amount1In > 0) {
|
||||||
IERC20 _token1 = pool.token0();
|
IERC20 _token1 = pool.token1();
|
||||||
convertEthToWeth(address(_token1) == wethAddr, TokenInterface(address(_token1)), amount1In);
|
convertEthToWeth(address(_token1) == wethAddr, TokenInterface(address(_token1)), amount1In);
|
||||||
_token1.safeAllowance(address(pool), amount1In);
|
_token1.safeAllowance(address(pool), amount1In);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user