@ring-protocol/universal-router-sdk 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1005,9 +1005,7 @@ function addRingV2Swap(planner, _ref, tradeType, options, payerIsUser, routerMus
1005
1005
  return token.wrapped.address;
1006
1006
  }), payerIsUser]);
1007
1007
  }
1008
- console.log('before fewOutputToken 375', trade.outputAmount.currency.wrapped, trade.outputAmount.currency.chainId);
1009
1008
  var fewOutputToken = fewV2Sdk.getFewTokenFromOriginalToken(trade.outputAmount.currency.wrapped, trade.outputAmount.currency.chainId);
1010
- console.log('after fewOutputToken380', fewOutputToken, trade.outputAmount.currency.wrapped, trade.outputAmount.currency.chainId);
1011
1009
  var fwWETH = FEW_WRAPPED_NATIVE_CURRENCY[trade.inputAmount.currency.wrapped.chainId];
1012
1010
  if (outputAmount.currency.isNative) {
1013
1011
  planner.addCommand(exports.CommandType.UNWRAP_FEW_TOKEN, [fwWETH.address, ROUTER_AS_RECIPIENT, trade.minimumAmountOut(options.slippageTolerance).quotient.toString()]);
@@ -1048,9 +1046,7 @@ function addV2Swap(planner, _ref2, tradeType, options, payerIsUser, routerMustCu
1048
1046
  return token.wrapped.address;
1049
1047
  }), payerIsUser]);
1050
1048
  }
1051
- console.log('before fewOutputToken 460', trade.outputAmount.currency.wrapped, trade.outputAmount.currency.chainId);
1052
1049
  var fewOutputToken = fewV2Sdk.getFewTokenFromOriginalToken(trade.outputAmount.currency.wrapped, trade.outputAmount.currency.chainId);
1053
- console.log('after fewOutputToken465', fewOutputToken, trade.outputAmount.currency.wrapped, trade.outputAmount.currency.chainId);
1054
1050
  if (fewV2Sdk.isFewToken(pathInput.wrapped) && fewV2Sdk.isFewToken(pathOutput.wrapped)) {
1055
1051
  if (outputAmount.currency.isNative) {
1056
1052
  planner.addCommand(exports.CommandType.UNWRAP_FEW_TOKEN, [fewOutputToken.address, ROUTER_AS_RECIPIENT, trade.minimumAmountOut(options.slippageTolerance).quotient.toString()]);
@@ -1146,7 +1142,6 @@ function addV4Swap(swaps, planner, _ref4, tradeType, options, payerIsUser, route
1146
1142
  var v4Route = new v4Sdk.Route(pools, inputAmount.currency, outputAmount.currency);
1147
1143
  if (fewV2Sdk.isFewToken(route.pools[0].token0.wrapped) && fewV2Sdk.isFewToken(route.pools[0].token1.wrapped)) {
1148
1144
  var _options$recipient;
1149
- console.log('isFewToken v4 633', fewV2Sdk.isFewToken(route.pools[0].token0.wrapped), fewV2Sdk.isFewToken(route.pools[0].token1.wrapped));
1150
1145
  var fewCurrencyIn = fewV2Sdk.getFewTokenFromOriginalToken(inputAmount.currency.wrapped, inputAmount.currency.chainId);
1151
1146
  var fewCurrencyOut = fewV2Sdk.getFewTokenFromOriginalToken(outputAmount.currency.wrapped, outputAmount.currency.chainId);
1152
1147
  var fewV4Route = new v4Sdk.Route(pools, fewCurrencyIn, fewCurrencyOut);
@@ -1185,7 +1180,6 @@ function addV4Swap(swaps, planner, _ref4, tradeType, options, payerIsUser, route
1185
1180
  }
1186
1181
  } else {
1187
1182
  var _options$recipient2;
1188
- console.log('isFewToken v4 701', fewV2Sdk.isFewToken(route.pools[0].token0.wrapped), fewV2Sdk.isFewToken(route.pools[0].token1.wrapped));
1189
1183
  var trade = v4Sdk.Trade.createUncheckedTrade({
1190
1184
  route: v4Route,
1191
1185
  inputAmount: inputAmount,