Updated on 2026-08-14

This commit is contained in:
Tangem 2018-10-27 12:42:54 +03:00
parent bae8bd0e6c
commit f2fc3e9886
6 changed files with 215 additions and 237 deletions

View file

@ -65,6 +65,11 @@ public abstract class CoinEngine {
this.blockchain=blockchain;
}
public Amount(BigDecimal amount, Blockchain blockchain) {
super(amount.unscaledValue(), amount.scale());
this.blockchain=blockchain;
}
public String getCurrency() {
return blockchain.getCurrency();
}
@ -83,6 +88,9 @@ public abstract class CoinEngine {
return super.toString();
}
public boolean isZero() {
return compareTo(BigDecimal.ZERO)==0;
}
}
protected TangemContext ctx;