@provable-games/ekubo-sdk 0.1.9 → 0.1.10

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.
package/dist/react.cjs CHANGED
@@ -2031,12 +2031,13 @@ function useEkuboQuotes({
2031
2031
  }
2032
2032
  return updated;
2033
2033
  });
2034
+ const exactOutputAmount = amount > 0n ? -amount : amount;
2034
2035
  const fetchPromises = sellTokens.filter((sellToken) => sellToken.toLowerCase() !== buyToken.toLowerCase()).map(async (sellToken) => {
2035
2036
  const abortController = new AbortController();
2036
2037
  abortControllersRef.current.set(sellToken, abortController);
2037
2038
  try {
2038
2039
  const quote = await client.getQuote({
2039
- amount,
2040
+ amount: exactOutputAmount,
2040
2041
  tokenFrom: sellToken,
2041
2042
  tokenTo: buyToken,
2042
2043
  signal: abortController.signal