diff --git a/contracts/protocols/1proto.sol b/contracts/protocols/1proto.sol index f93c0ab..07b30f8 100644 --- a/contracts/protocols/1proto.sol +++ b/contracts/protocols/1proto.sol @@ -215,7 +215,7 @@ contract Resolver is OneProtoHelpers { disableDexes, destTokenEthPriceTimesGasPrices ); - buyAmt = returnAmounts[len - 1]; + buyAmt = returnAmounts[len - 2]; unitAmt = getBuyUnitAmt(TokenInterface(tokens[len - 1]), buyAmt, TokenInterface(tokens[0]), sellAmt, slippage); }