File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
web/ui/ConnectWallet/screens/Buy/fiat Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ export type GetBuyWithFiatQuoteParams = {
100100 * @hidden
101101 */
102102 paymentLinkId ?: string ;
103+
104+ onrampChainId ?: number ;
105+ onrampTokenAddress ?: string ;
103106} ;
104107
105108/**
@@ -326,7 +329,8 @@ export async function getBuyWithFiatQuote(
326329 purchaseData : params . purchaseData ,
327330 currency : params . fromCurrencySymbol ,
328331 maxSteps : 2 ,
329- onrampTokenAddress : NATIVE_TOKEN_ADDRESS , // force onramp to native token to avoid missing gas issues
332+ onrampTokenAddress : params . onrampTokenAddress ?? NATIVE_TOKEN_ADDRESS , // force onramp to native token to avoid missing gas issues
333+ onrampChainId : params . onrampChainId ,
330334 paymentLinkId : params . paymentLinkId ,
331335 } ) ;
332336
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ export type PayUIOptions = Prettify<
9999 } ;
100100 preferredProvider ?: FiatProvider ;
101101 supportedProviders ?: FiatProvider [ ] ;
102+ onrampChainId ?: number ;
103+ onrampTokenAddress ?: string ;
102104 }
103105 | false ;
104106
Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ export function FiatScreenContent(props: {
112112 fromAddress : payer . account . address ,
113113 paymentLinkId : paymentLinkId ,
114114 preferredProvider : preferredProvider ?? supportedProviders [ 0 ] ,
115+ onrampChainId : buyWithFiatOptions ?. onrampChainId ,
116+ onrampTokenAddress : buyWithFiatOptions ?. onrampTokenAddress ,
115117 }
116118 : undefined ,
117119 ) ;
You can’t perform that action at this time.
0 commit comments