mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
Use static method, remove unused formatter field
This commit is contained in:
parent
37eef84e57
commit
b26a15600d
@ -135,11 +135,11 @@ public class BsqFormatter extends BSFormatter {
|
||||
}
|
||||
|
||||
public String formatBTCWithCode(long satoshi) {
|
||||
return super.formatCoinWithCode(satoshi, btcCoinFormat);
|
||||
return BSFormatter.formatCoinWithCode(satoshi, btcCoinFormat);
|
||||
}
|
||||
|
||||
public String formatBTCWithCode(Coin coin) {
|
||||
return super.formatCoinWithCode(coin, btcCoinFormat);
|
||||
return BSFormatter.formatCoinWithCode(coin, btcCoinFormat);
|
||||
}
|
||||
|
||||
public String formatBTC(Coin coin) {
|
||||
|
@ -27,12 +27,10 @@ import javax.inject.Inject;
|
||||
|
||||
public class SecurityDepositValidator extends NumberValidator {
|
||||
|
||||
private final BSFormatter formatter;
|
||||
private PaymentAccount paymentAccount;
|
||||
|
||||
@Inject
|
||||
public SecurityDepositValidator(BSFormatter formatter) {
|
||||
this.formatter = formatter;
|
||||
public SecurityDepositValidator() {
|
||||
}
|
||||
|
||||
public void setPaymentAccount(PaymentAccount paymentAccount) {
|
||||
|
Loading…
Reference in New Issue
Block a user