add redirects
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user