Updated on 2026-08-14

This commit is contained in:
Tangem 2020-02-27 09:55:54 +00:00
commit c1f49f5877
2 changed files with 3 additions and 2 deletions

View file

@ -546,7 +546,7 @@ public class TokenEngine extends CoinEngine {
int gasLimitInt = 60000;
if (amountValue.getCurrency().equals("DGX")) {
if (amountValue.getCurrency().equals("DGX") || amountValue.getCurrency().equals("CGT")) {
gasLimitInt = 300000;
}
@ -796,7 +796,7 @@ public class TokenEngine extends CoinEngine {
Log.i(TAG, "Infura gas price: " + gasPrice + " (" + l.toString() + ")");
BigInteger m;
if (!amount.getCurrency().equals(Blockchain.Ethereum.getCurrency()))
if (amount.getCurrency().equals("DGX")) {
if (amount.getCurrency().equals("DGX") || amount.getCurrency().equals("CGT")) {
m = BigInteger.valueOf(300000);
} else {
m = BigInteger.valueOf(60000);

View file

@ -138,6 +138,7 @@ private fun getGasLimit(amount: Amount): GasLimit {
return when (amount.currencySymbol) {
Blockchain.Ethereum.currency -> GasLimit.Default
"DGX" -> GasLimit.High
"CGT" -> GasLimit.High
else -> GasLimit.Token
}
}