This commit is contained in:
Adrian Brzeziński 2023-01-10 01:07:36 +01:00
parent 0cf973f0c4
commit 2bd8c86061
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@ const fetchMangoRoutes = async (
{
const defaultOtherAmount =
swapMode === 'ExactIn' ? 0 : Number.MAX_SAFE_INTEGER
const paramsString = new URLSearchParams({
inputMint: inputMint.toString(),
outputMint: outputMint.toString(),
@ -90,6 +91,7 @@ const handleGetRoutes = async (
wallet: string | undefined | null
) => {
wallet ||= PublicKey.default.toBase58()
const results = await Promise.allSettled([
fetchMangoRoutes(
inputMint,