Updated on 2026-08-14

This commit is contained in:
Tangem 2023-11-17 17:19:49 +02:00
parent 6b92fc6179
commit b5961302a9
6 changed files with 75 additions and 14 deletions

View file

@ -143,13 +143,14 @@ internal class SwapViewModel @Inject constructor(
fromCryptoCurrency = state.initialCryptoCurrency,
toCryptoCurrency = state.toGroup.available.first().currencyStatus.currency
)
cryptoCurrency = state.initialCryptoCurrency
// updateTokensState(dataState = state.foundTokensState)
// startLoadingQuotes(
// fromToken = state.preselectTokens.fromToken,
// toToken = state.preselectTokens.toToken,
// amount = lastAmount.value,
// )
startLoadingQuotes(
fromToken = state.initialCryptoCurrency,
toToken = state.toGroup.available.first().currencyStatus.currency,
amount = lastAmount.value,
)
}.onFailure {
Timber.tag(loggingTag).e(it)
}