Add new handling to encourage the user to save their wallet recovery phrase.

This only effects those who have opted in to payments and have a non-zero balance.
This commit is contained in:
Varsha
2022-09-21 11:15:49 -07:00
committed by Cody Henthorne
parent c6bfdeb4b0
commit e676f324f1
16 changed files with 308 additions and 76 deletions

View File

@@ -68,6 +68,8 @@ public abstract class Money {
public abstract boolean isNegative();
public abstract boolean isEqualOrLessThanZero();
public abstract Money negate();
public abstract Money abs();
@@ -147,6 +149,11 @@ public abstract class Money {
return amount.signum() == -1;
}
@Override
public boolean isEqualOrLessThanZero() {
return amount != null && amount.compareTo(BigInteger.ZERO) <= 0;
}
@Override
public MobileCoin negate() {
return new MobileCoin(amount.negate());