Updated on 2026-08-14
This commit is contained in:
parent
b881339f57
commit
79a7e7263d
4 changed files with 8 additions and 16 deletions
|
|
@ -6,14 +6,6 @@ import com.tangem.common.card.EllipticCurve
|
|||
import java.math.BigDecimal
|
||||
|
||||
|
||||
fun Blockchain.isNoAccountError(exception: Throwable): Boolean {
|
||||
return when (this) {
|
||||
Blockchain.Stellar, Blockchain.XRP ->
|
||||
exception.message?.contains("Account not found") == true
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
|
||||
fun Blockchain.amountToCreateAccount(token: Token? = null): BigDecimal? {
|
||||
return when (this) {
|
||||
Blockchain.Stellar -> if (token?.symbol == NODL) BigDecimal(1.5) else BigDecimal.ONE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue