File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
src/Packages/Marketplace/Runtime Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,24 @@ public static string GenerateOnRampLink(
3535 var queryParamsDictionary = new Dictionary < string , string >
3636 {
3737 { "apiKey" , apiKey } ,
38- { "cryptoCurrencyList" , queryParams . CryptoCurrencyList } ,
39- { "defaultCryptoCurrency" , queryParams . DefaultCryptoCurrency } ,
40- { "defaultFiatAmount" , queryParams . DefaultFiatAmount } ,
41- { "defaultFiatCurrency" , queryParams . DefaultFiatCurrency } ,
38+ {
39+ "cryptoCurrencyList" ,
40+ string . IsNullOrEmpty ( queryParams . CryptoCurrencyList )
41+ ? "imx,eth,usdc"
42+ : queryParams . CryptoCurrencyList
43+ } ,
44+ {
45+ "defaultCryptoCurrency" ,
46+ string . IsNullOrEmpty ( queryParams . DefaultCryptoCurrency ) ? "IMX" : queryParams . DefaultCryptoCurrency
47+ } ,
48+ {
49+ "defaultFiatAmount" ,
50+ string . IsNullOrEmpty ( queryParams . DefaultFiatAmount ) ? "50" : queryParams . DefaultFiatAmount
51+ } ,
52+ {
53+ "defaultFiatCurrency" ,
54+ string . IsNullOrEmpty ( queryParams . DefaultFiatCurrency ) ? "USD" : queryParams . DefaultFiatCurrency
55+ } ,
4256 {
4357 "defaultPaymentMethod" ,
4458 extraQueryParams != null &&
You can’t perform that action at this time.
0 commit comments