Updated on 2026-08-14

This commit is contained in:
Tangem 2022-07-15 15:21:20 +04:00
parent 69298b05ab
commit 795087e814
2 changed files with 0 additions and 12 deletions

View file

@ -32,10 +32,6 @@ object TapWorkarounds {
DerivationStyle.NEW
}
val Card.allowToAddCustomDerivation: Boolean
get() = useOldStyleDerivation || batchId == "AC03"
// To recover funds for users who scanned AC03 batch on old app version and got old style derivation
fun Card.isExcluded(): Boolean {
val excludedBatch = excludedBatches.contains(batchId)
val excludedIssuerName = excludedIssuers.contains(issuer.name.uppercase(Locale.ROOT))

View file

@ -9,7 +9,6 @@ import com.tangem.domain.AddCustomTokenError.Warning.*
import com.tangem.domain.AddCustomTokenException
import com.tangem.domain.DomainDialog
import com.tangem.domain.DomainWrapped
import com.tangem.domain.common.TapWorkarounds.allowToAddCustomDerivation
import com.tangem.domain.common.TapWorkarounds.derivationStyle
import com.tangem.domain.common.extensions.canHandleToken
import com.tangem.domain.common.extensions.fromNetworkId
@ -571,18 +570,11 @@ private class AddCustomTokenReducer(
supportedTokenNetworkIds = supportedTokenNetworkIds
)
var derivationPathState = state.screenState.derivationPath
derivationPathState = if (card.allowToAddCustomDerivation) {
derivationPathState.copy(isVisible = true)
} else {
derivationPathState.copy(isVisible = false)
}
val form = Form(AddCustomTokenState.createFormFields(card, CustomTokenType.Blockchain))
state.copy(
cardDerivationStyle = card.derivationStyle,
form = form,
tangemTechServiceManager = tangemTechServiceManager,
screenState = state.screenState.copy(derivationPath = derivationPathState)
)
}
is OnDestroy -> {