Updated on 2026-08-14
This commit is contained in:
parent
faa1cd750c
commit
a8a8954993
8 changed files with 31 additions and 28 deletions
|
|
@ -176,7 +176,7 @@ public class BtcCashEngine extends CoinEngine {
|
|||
return Uri.parse("bitcoincash:" + mCard.getWallet());
|
||||
}
|
||||
|
||||
public boolean checkAmountValue(TangemCard card, String amountValue, String feeValue, Long minFeeInInternalUnits) {
|
||||
public boolean checkAmountValue(TangemCard card, String amountValue, String feeValue, Long minFeeInInternalUnits, Boolean incfee) {
|
||||
Long fee;
|
||||
Long amount;
|
||||
try {
|
||||
|
|
@ -193,10 +193,10 @@ public class BtcCashEngine extends CoinEngine {
|
|||
if (fee == 0 || amount == 0)
|
||||
return false;
|
||||
|
||||
if (fee > amount)
|
||||
if (incfee && amount > card.getBalance())
|
||||
return false;
|
||||
|
||||
if (fee < minFeeInInternalUnits)
|
||||
if (!incfee && amount + fee > card.getBalance())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue