Moved the creation of allowedVsCurrenciesMap to a dedicated function getAllowedVsCurrenciesMap. This function takes a currenciesString input and returns a map of allowed vs currencies.
Updated the httpTimeout and httpClient.Timeout initialization to use constants (DefaultHTTPTimeout) for consistency and to make it easier to adjust the default timeout in the future.
I actually have an idea for the makeReq method, but let's see if this is fine first
Hi @romanornr. Thank you for your contribution. Normally we do not accept PRs that modify common code but this PR seems simple enough and is making the code more readable.
Moved the creation of
allowedVsCurrenciesMap
to a dedicated functiongetAllowedVsCurrenciesMap
. This function takes acurrenciesString
input and returns a map of allowed vs currencies.Updated the
httpTimeout
andhttpClient.Timeout
initialization to use constants (DefaultHTTPTimeout
) for consistency and to make it easier to adjust the default timeout in the future.I actually have an idea for the
makeReq
method, but let's see if this is fine first