Updated on 2026-08-14
This commit is contained in:
parent
fec81d0697
commit
25d39f9f0b
11 changed files with 81 additions and 71 deletions
|
|
@ -72,5 +72,6 @@ class SwapFragment : Fragment() {
|
|||
|
||||
companion object {
|
||||
const val CURRENCY_BUNDLE_KEY = "swap_currency"
|
||||
const val DERIVATION_PATH = "DERIVATION_STYLE"
|
||||
}
|
||||
}
|
||||
|
|
@ -52,6 +52,7 @@ internal class SwapViewModel @Inject constructor(
|
|||
savedStateHandle[SwapFragment.CURRENCY_BUNDLE_KEY]
|
||||
?: error("no expected parameter Currency found"),
|
||||
)
|
||||
private val derivationPath = savedStateHandle.get<String>(SwapFragment.DERIVATION_PATH)
|
||||
|
||||
private val stateBuilder = StateBuilder(
|
||||
actions = createUiActions(),
|
||||
|
|
@ -78,6 +79,7 @@ internal class SwapViewModel @Inject constructor(
|
|||
get() = swapRouter.currentScreen
|
||||
|
||||
init {
|
||||
swapInteractor.initDerivationPath(derivationPath)
|
||||
initTokens(currency)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue