@@ -39,18 +39,18 @@ public OnRamp(string environment, string email, string address)
39
39
}
40
40
41
41
/// <summary>
42
- /// Generates a link for the on-ramp flow.
42
+ /// Generates a URL for the on-ramp flow.
43
43
/// </summary>
44
- /// <param name="fiatCurrency">The fiat currency to be used (default is "USD").</param>
45
- /// <param name="defaultFiatAmount ">The default amount of fiat currency (default is "50").</param>
46
- /// <param name="defaultCryptoCurrency ">The default cryptocurrency (default is "IMX"). .</param>
47
- /// <param name="defaultCryptoCurrencyList ">A comma-separated list of available cryptocurrencies to purchase (default is "imx,eth,usdc").</param>
48
- /// <returns>An on-ramp URL</returns>
44
+ /// <param name="fiatCurrency">The fiat currency to use (default: "USD").</param>
45
+ /// <param name="fiatAmount ">The amount of fiat currency to spend when purchasing cryptocurrency (default: "50").</param>
46
+ /// <param name="cryptoCurrency ">The cryptocurrency to purchase (default: "IMX").</param>
47
+ /// <param name="cryptoCurrencyList ">A comma-separated list of available cryptocurrencies for purchase (default: "imx,eth,usdc").</param>
48
+ /// <returns>The generated on-ramp URL. </returns>
49
49
public string GetLink (
50
50
string fiatCurrency = "USD" ,
51
- string defaultFiatAmount = "50" ,
52
- string defaultCryptoCurrency = "IMX" ,
53
- string defaultCryptoCurrencyList = "imx,eth,usdc"
51
+ string fiatAmount = "50" ,
52
+ string cryptoCurrency = "IMX" ,
53
+ string cryptoCurrencyList = "imx,eth,usdc"
54
54
)
55
55
{
56
56
var baseUrl = BaseUrls [ _environment ] ;
@@ -65,14 +65,14 @@ public string GetLink(
65
65
{ "productsAvailed" , "buy" } ,
66
66
{ "exchangeScreenTitle" , "Buy" } ,
67
67
{ "themeColor" , "0D0D0D" } ,
68
- { "defaultCryptoCurrency" , defaultCryptoCurrency } ,
68
+ { "defaultCryptoCurrency" , cryptoCurrency } ,
69
69
{ "email" , Uri . EscapeDataString ( _email ) } ,
70
70
{ "isAutoFillUserData" , "true" } ,
71
71
{ "disableWalletAddressForm" , "true" } ,
72
- { "defaultFiatAmount" , defaultFiatAmount } ,
72
+ { "defaultFiatAmount" , fiatAmount } ,
73
73
{ "defaultFiatCurrency" , fiatCurrency } ,
74
74
{ "walletAddress" , _address } ,
75
- { "cryptoCurrencyList" , defaultCryptoCurrencyList }
75
+ { "cryptoCurrencyList" , cryptoCurrencyList }
76
76
} ;
77
77
78
78
var queryString = string . Join ( "&" , queryParams . Select ( kvp => $ "{ kvp . Key } ={ Uri . EscapeDataString ( kvp . Value ) } ") . ToArray ( ) ) ;
0 commit comments