mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-09 23:22:16 -04:00
remove unused messages and fields from protobuf models
rename BitcoinModule to MoneroModule change to HavenoUtils.formatXmr(...) remove "_as_long" postfix from models
This commit is contained in:
parent
1a1fb130c0
commit
e71f9a54ac
103 changed files with 556 additions and 1681 deletions
|
@ -622,7 +622,7 @@ abstract class OfferBookViewModel extends ActivatableViewModel {
|
|||
}
|
||||
|
||||
public String getMakerFeeAsString(Offer offer) {
|
||||
return HavenoUtils.formatToXmrWithCode(offer.getMakerFee());
|
||||
return HavenoUtils.formatXmr(offer.getMakerFee(), true);
|
||||
}
|
||||
|
||||
private static String getDirectionWithCodeDetailed(OfferDirection direction, String currencyCode) {
|
||||
|
@ -634,7 +634,7 @@ abstract class OfferBookViewModel extends ActivatableViewModel {
|
|||
|
||||
public String formatDepositString(BigInteger deposit, long amount) {
|
||||
var percentage = FormattingUtils.formatToRoundedPercentWithSymbol(BigDecimal.valueOf(deposit.longValueExact()).divide(BigDecimal.valueOf(amount)).doubleValue());
|
||||
return HavenoUtils.formatToXmr(deposit) + " (" + percentage + ")";
|
||||
return HavenoUtils.formatXmr(deposit) + " (" + percentage + ")";
|
||||
}
|
||||
|
||||
PaymentMethod getShowAllEntryForPaymentMethod() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue