- Fixed _getAmountsOutData()

This commit is contained in:
eboado 2020-12-03 16:51:38 +01:00
parent c7bd9d2511
commit eadaf066f2

View File

@ -369,6 +369,7 @@ abstract contract BaseUniswapAdapter is FlashLoanReceiverBase, IBaseUniswapAdapt
? amountsWithWeth[2] ? amountsWithWeth[2]
: amountsWithoutWeth[1]; : amountsWithoutWeth[1];
} catch { } catch {
amountsWithoutWeth = new uint256[](2);
bestAmountOut = amountsWithWeth[2]; bestAmountOut = amountsWithWeth[2];
} }