Updated on 2026-08-14
This commit is contained in:
parent
0914085502
commit
d8e756e7b7
4 changed files with 11 additions and 11 deletions
|
|
@ -405,7 +405,7 @@
|
|||
{
|
||||
"id" : "vechain",
|
||||
"symbol" : "VET",
|
||||
"name" : "Vechain",
|
||||
"name" : "VeChain",
|
||||
"networks" : [
|
||||
{
|
||||
"networkId" : "vechain/test"
|
||||
|
|
@ -419,7 +419,7 @@
|
|||
"networks": [
|
||||
{
|
||||
"networkId": "vechain/test",
|
||||
"contractAddress": "0x0000000000000000000000000000456E65726779",
|
||||
"contractAddress": "0x0000000000000000000000000000456e65726779",
|
||||
"decimalCount": 18
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -76,8 +76,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"decimal/test" -> Blockchain.DecimalTestnet
|
||||
"xdc-network" -> Blockchain.XDC
|
||||
"xdc-network/test" -> Blockchain.XDCTestnet
|
||||
"vechain" -> Blockchain.Vechain
|
||||
"vechain/test" -> Blockchain.VechainTestnet
|
||||
"vechain" -> Blockchain.VeChain
|
||||
"vechain/test" -> Blockchain.VeChainTestnet
|
||||
"aptos" -> Blockchain.Aptos
|
||||
"aptos/test" -> Blockchain.AptosTestnet
|
||||
else -> null
|
||||
|
|
@ -157,8 +157,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.DecimalTestnet -> "decimal/test"
|
||||
Blockchain.XDC -> "xdc-network"
|
||||
Blockchain.XDCTestnet -> "xdc-network/test"
|
||||
Blockchain.Vechain -> "vechain"
|
||||
Blockchain.VechainTestnet -> "vechain/test"
|
||||
Blockchain.VeChain -> "vechain"
|
||||
Blockchain.VeChainTestnet -> "vechain/test"
|
||||
Blockchain.Aptos -> "aptos"
|
||||
Blockchain.AptosTestnet -> "aptos/test"
|
||||
}
|
||||
|
|
@ -209,7 +209,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.NearTestnet -> "near/test"
|
||||
Blockchain.Decimal, Blockchain.DecimalTestnet -> "decimal"
|
||||
Blockchain.XDC, Blockchain.XDCTestnet -> "xdce-crowd-sale"
|
||||
Blockchain.Vechain, Blockchain.VechainTestnet -> "vechain"
|
||||
Blockchain.VeChain, Blockchain.VeChainTestnet -> "vechain"
|
||||
Blockchain.Aptos -> "aptos"
|
||||
Blockchain.AptosTestnet -> "aptos/test"
|
||||
Blockchain.Unknown -> "unknown"
|
||||
|
|
|
|||
|
|
@ -655,9 +655,9 @@ internal class SwapInteractorImpl @Inject constructor(
|
|||
gasPrice = (feeAmountWithDecimals / fee.gasLimit.toBigDecimal()).toBigInteger(),
|
||||
)
|
||||
}
|
||||
blockchain == Blockchain.Vechain -> Fee.Vechain(
|
||||
blockchain == Blockchain.VeChain -> Fee.VeChain(
|
||||
amount = feeAmount,
|
||||
gasPriceCoef = Fee.Vechain.getGasPriceCoef(fee.gasLimit.toLong(), fee.feeValue),
|
||||
gasPriceCoef = Fee.VeChain.getGasPriceCoef(fee.gasLimit.toLong(), fee.feeValue),
|
||||
gasLimit = fee.gasLimit.toLong(),
|
||||
)
|
||||
blockchain == Blockchain.Aptos -> {
|
||||
|
|
@ -1354,7 +1354,7 @@ internal class SwapInteractorImpl @Inject constructor(
|
|||
return when (this) {
|
||||
is Fee.Common -> 0
|
||||
is Fee.Ethereum -> gasLimit.toInt()
|
||||
is Fee.Vechain -> gasLimit.toInt()
|
||||
is Fee.VeChain -> gasLimit.toInt()
|
||||
is Fee.Aptos -> amount.longValue?.div(gasUnitPrice)?.toInt() ?: 0
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ spr-client = "3.6.2"
|
|||
# endregion Other libraries
|
||||
|
||||
# region Tangem
|
||||
tangemBlockchainSdk = "release-app_5.5-466"
|
||||
tangemBlockchainSdk = "release-app_5.5-469"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "release-app_5.5-323"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue