Updated on 2026-08-14
This commit is contained in:
parent
53d161d88e
commit
5c49912ba4
2 changed files with 7 additions and 6 deletions
|
|
@ -78,8 +78,8 @@ dependencies {
|
|||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
||||
|
||||
implementation 'com.tangem:blockchain:develop-61'
|
||||
implementation 'com.tangem.tangem-sdk-kotlin:core:develop-129'
|
||||
implementation 'com.tangem.tangem-sdk-kotlin:android:develop-129'
|
||||
implementation 'com.tangem.tangem-sdk-kotlin:core:develop-130'
|
||||
implementation 'com.tangem.tangem-sdk-kotlin:android:develop-130'
|
||||
|
||||
// WebView
|
||||
implementation "androidx.browser:browser:1.3.0"
|
||||
|
|
|
|||
|
|
@ -14,10 +14,11 @@ fun MoonpayStatus.buyIsAllowed(currency: Currency): Boolean {
|
|||
|
||||
return when (currency) {
|
||||
is Currency.Blockchain -> {
|
||||
if (currency.blockchain == Blockchain.Unknown || currency.blockchain == Blockchain.BSC) {
|
||||
false
|
||||
} else {
|
||||
availableToBuy.contains(currency.currencySymbol)
|
||||
val blockchain = currency.blockchain
|
||||
when {
|
||||
blockchain.isTestnet() -> blockchain.getTestnetTopUpUrl() != null
|
||||
blockchain == Blockchain.Unknown || blockchain == Blockchain.BSC -> false
|
||||
else -> availableToBuy.contains(currency.currencySymbol)
|
||||
}
|
||||
}
|
||||
is Currency.Token -> false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue