add redirects
This commit is contained in:
@@ -282,10 +282,10 @@ export async function getJumperQuote(payload: JumperQuotePayload): Promise<Jumpe
|
|||||||
toAddress: payload.toAddress,
|
toAddress: payload.toAddress,
|
||||||
slippage: String(payload.slippage),
|
slippage: String(payload.slippage),
|
||||||
}).toString()
|
}).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}`
|
`/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 {
|
export interface BridgeExecutePayload {
|
||||||
|
|||||||
Reference in New Issue
Block a user