Updated on 2026-08-14
This commit is contained in:
parent
8d84420ca7
commit
b1fd81fe48
1 changed files with 7 additions and 0 deletions
|
|
@ -197,11 +197,18 @@ data class AddCustomTokenState(
|
|||
val solanaTokensUnsupportedByCard = fwCardVersion < FirmwareVersion.SolanaTokensAvailable
|
||||
if (solanaUnsupportedByCard || solanaTokensUnsupportedByCard) networks.remove(Blockchain.Solana)
|
||||
|
||||
networks.removeAll(getUnsupportedTokensAtAll())
|
||||
networks.removeAll(getNetworksUnsupportedByApp(type))
|
||||
|
||||
return networks
|
||||
}
|
||||
|
||||
private fun getUnsupportedTokensAtAll():List<Blockchain> {
|
||||
return listOf(
|
||||
Blockchain.RSK,
|
||||
)
|
||||
}
|
||||
|
||||
private fun getNetworksUnsupportedByApp(type: CustomTokenType): List<Blockchain> {
|
||||
return when (type) {
|
||||
CustomTokenType.Token -> listOf(Blockchain.Solana)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue