add redirects

This commit is contained in:
2026-05-28 22:32:13 +03:00
parent 8dfd48fe52
commit efbb94b43d

View File

@@ -282,10 +282,10 @@ export async function getJumperQuote(payload: JumperQuotePayload): Promise<Jumpe
toAddress: payload.toAddress,
slippage: String(payload.slippage),
}).toString()
const res = await walletGet<{ body?: JumperQuote; data?: { body?: JumperQuote } }>(
const res = await walletGet<JumperQuote & { body?: JumperQuote; data?: { body?: JumperQuote } }>(
`/api/jumper/quote-best?${qs}`
)
return (res.data?.body ?? res.body) as JumperQuote
return (res.data?.body ?? res.body ?? res) as JumperQuote
}
export interface BridgeExecutePayload {