Rename availableConfirmedBalance to availableBalance

It does not include only confirmed txs as we include
the unconfirmed own change outputs.
This commit is contained in:
chimp1984 2021-10-20 13:16:19 +02:00
parent dad19ba1c1
commit 88198be7ff
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
23 changed files with 62 additions and 62 deletions

View File

@ -124,7 +124,7 @@ public class BsqWalletTest extends MethodTest {
genBtcBlocksThenWait(1, 4000);
BsqBalanceInfo alicesBsqBalances = aliceClient.getBalances().getBsq();
BsqBalanceInfo bobsBsqBalances = waitForBsqNewAvailableConfirmedBalance(bobClient, 150000000);
BsqBalanceInfo bobsBsqBalances = waitForBsqNewAvailableBalance(bobClient, 150000000);
log.debug("See Available Confirmed BSQ Balances...");
printBobAndAliceBsqBalances(testInfo,
@ -166,8 +166,8 @@ public class BsqWalletTest extends MethodTest {
return bsqBalance;
}
private BsqBalanceInfo waitForBsqNewAvailableConfirmedBalance(GrpcClient grpcClient,
long staleBalance) {
private BsqBalanceInfo waitForBsqNewAvailableBalance(GrpcClient grpcClient,
long staleBalance) {
BsqBalanceInfo bsqBalance = grpcClient.getBsqBalances();
for (int numRequests = 1;
numRequests <= 15 && bsqBalance.getAvailableConfirmedBalance() == staleBalance;

View File

@ -38,13 +38,13 @@ public class WalletTestUtil {
0);
@SuppressWarnings("SameParameterValue")
public static bisq.core.api.model.BsqBalanceInfo bsqBalanceModel(long availableConfirmedBalance,
public static bisq.core.api.model.BsqBalanceInfo bsqBalanceModel(long availableBalance,
long unverifiedBalance,
long unconfirmedChangeBalance,
long lockedForVotingBalance,
long lockupBondsBalance,
long unlockingBondsBalance) {
return bisq.core.api.model.BsqBalanceInfo.valueOf(availableConfirmedBalance,
return bisq.core.api.model.BsqBalanceInfo.valueOf(availableBalance,
unverifiedBalance,
unconfirmedChangeBalance,
lockedForVotingBalance,
@ -54,7 +54,7 @@ public class WalletTestUtil {
public static void verifyBsqBalances(bisq.core.api.model.BsqBalanceInfo expected,
BsqBalanceInfo actual) {
assertEquals(expected.getAvailableConfirmedBalance(), actual.getAvailableConfirmedBalance());
assertEquals(expected.getAvailableBalance(), actual.getAvailableConfirmedBalance());
assertEquals(expected.getUnverifiedBalance(), actual.getUnverifiedBalance());
assertEquals(expected.getUnconfirmedChangeBalance(), actual.getUnconfirmedChangeBalance());
assertEquals(expected.getLockedForVotingBalance(), actual.getLockedForVotingBalance());

View File

@ -582,14 +582,14 @@ class CoreWalletsService {
verifyWalletsAreAvailable();
verifyEncryptedWalletIsUnlocked();
var availableConfirmedBalance = bsqWalletService.getAvailableConfirmedBalance();
var availableBalance = bsqWalletService.getAvailableBalance();
var unverifiedBalance = bsqWalletService.getUnverifiedBalance();
var unconfirmedChangeBalance = bsqWalletService.getUnconfirmedChangeBalance();
var lockedForVotingBalance = bsqWalletService.getLockedForVotingBalance();
var lockupBondsBalance = bsqWalletService.getLockupBondsBalance();
var unlockingBondsBalance = bsqWalletService.getUnlockingBondsBalance();
return new BsqBalanceInfo(availableConfirmedBalance.value,
return new BsqBalanceInfo(availableBalance.value,
unverifiedBalance.value,
unconfirmedChangeBalance.value,
lockedForVotingBalance.value,

View File

@ -17,20 +17,20 @@ public class BsqBalanceInfo implements Payload {
-1);
// All balances are in BSQ satoshis.
private final long availableConfirmedBalance;
private final long availableBalance;
private final long unverifiedBalance;
private final long unconfirmedChangeBalance;
private final long lockedForVotingBalance;
private final long lockupBondsBalance;
private final long unlockingBondsBalance;
public BsqBalanceInfo(long availableConfirmedBalance,
public BsqBalanceInfo(long availableBalance,
long unverifiedBalance,
long unconfirmedChangeBalance,
long lockedForVotingBalance,
long lockupBondsBalance,
long unlockingBondsBalance) {
this.availableConfirmedBalance = availableConfirmedBalance;
this.availableBalance = availableBalance;
this.unverifiedBalance = unverifiedBalance;
this.unconfirmedChangeBalance = unconfirmedChangeBalance;
this.lockedForVotingBalance = lockedForVotingBalance;
@ -39,14 +39,14 @@ public class BsqBalanceInfo implements Payload {
}
@VisibleForTesting
public static BsqBalanceInfo valueOf(long availableConfirmedBalance,
public static BsqBalanceInfo valueOf(long availableBalance,
long unverifiedBalance,
long unconfirmedChangeBalance,
long lockedForVotingBalance,
long lockupBondsBalance,
long unlockingBondsBalance) {
// Convenience for creating a model instance instead of a proto.
return new BsqBalanceInfo(availableConfirmedBalance,
return new BsqBalanceInfo(availableBalance,
unverifiedBalance,
unconfirmedChangeBalance,
lockedForVotingBalance,
@ -57,11 +57,11 @@ public class BsqBalanceInfo implements Payload {
///////////////////////////////////////////////////////////////////////////////////////////
// PROTO BUFFER
///////////////////////////////////////////////////////////////////////////////////////////
// TODO rename availableConfirmedBalance in proto if possible
@Override
public bisq.proto.grpc.BsqBalanceInfo toProtoMessage() {
return bisq.proto.grpc.BsqBalanceInfo.newBuilder()
.setAvailableConfirmedBalance(availableConfirmedBalance)
.setAvailableConfirmedBalance(availableBalance)
.setUnverifiedBalance(unverifiedBalance)
.setUnconfirmedChangeBalance(unconfirmedChangeBalance)
.setLockedForVotingBalance(lockedForVotingBalance)
@ -83,7 +83,7 @@ public class BsqBalanceInfo implements Payload {
@Override
public String toString() {
return "BsqBalanceInfo{" +
"availableConfirmedBalance=" + availableConfirmedBalance +
"availableBalance=" + availableBalance +
", unverifiedBalance=" + unverifiedBalance +
", unconfirmedChangeBalance=" + unconfirmedChangeBalance +
", lockedForVotingBalance=" + lockedForVotingBalance +

View File

@ -20,7 +20,7 @@ package bisq.core.btc.listeners;
import org.bitcoinj.core.Coin;
public interface BsqBalanceListener {
void onUpdateBalances(Coin availableConfirmedBalance,
void onUpdateBalances(Coin availableBalance,
Coin availableNonBsqBalance,
Coin unverifiedBalance,
Coin unconfirmedChangeBalance,

View File

@ -100,7 +100,7 @@ public class BsqWalletService extends WalletService implements DaoStateListener
@Getter
private Coin availableNonBsqBalance = Coin.ZERO;
@Getter
private Coin availableConfirmedBalance = Coin.ZERO;
private Coin availableBalance = Coin.ZERO;
@Getter
private Coin unverifiedBalance = Coin.ZERO;
@Getter
@ -284,18 +284,18 @@ public class BsqWalletService extends WalletService implements DaoStateListener
.mapToLong(TxOutput::getValue)
.sum());
availableConfirmedBalance = bsqCoinSelector.select(NetworkParameters.MAX_MONEY,
availableBalance = bsqCoinSelector.select(NetworkParameters.MAX_MONEY,
wallet.calculateAllSpendCandidates()).valueGathered;
if (availableConfirmedBalance.isNegative())
availableConfirmedBalance = Coin.ZERO;
if (availableBalance.isNegative())
availableBalance = Coin.ZERO;
unconfirmedChangeBalance = unconfirmedBsqChangeOutputListService.getBalance();
availableNonBsqBalance = nonBsqCoinSelector.select(NetworkParameters.MAX_MONEY,
wallet.calculateAllSpendCandidates()).valueGathered;
bsqBalanceListeners.forEach(e -> e.onUpdateBalances(availableConfirmedBalance, availableNonBsqBalance, unverifiedBalance,
bsqBalanceListeners.forEach(e -> e.onUpdateBalances(availableBalance, availableNonBsqBalance, unverifiedBalance,
unconfirmedChangeBalance, lockedForVotingBalance, lockupBondsBalance, unlockingBondsBalance));
log.info("updateBsqBalance took {} ms", System.currentTimeMillis() - ts);
}

View File

@ -482,7 +482,7 @@ public abstract class WalletService {
// Balance
///////////////////////////////////////////////////////////////////////////////////////////
public Coin getAvailableConfirmedBalance() {
public Coin getAvailableBalance() {
return wallet != null ? wallet.getBalance(Wallet.BalanceType.AVAILABLE) : Coin.ZERO;
}
@ -860,7 +860,7 @@ public abstract class WalletService {
if (balanceListener.getAddress() != null)
balance = getBalanceForAddress(balanceListener.getAddress());
else
balance = getAvailableConfirmedBalance();
balance = getAvailableBalance();
balanceListener.onBalanceChanged(balance, tx);
}

View File

@ -184,7 +184,7 @@ public class OfferUtil {
// We have to keep a minimum amount of BSQ == bitcoin dust limit, otherwise there
// would be dust violations for change UTXOs; essentially means the minimum usable
// balance of BSQ is 5.46.
Coin usableBsqBalance = bsqWalletService.getAvailableConfirmedBalance().subtract(getMinNonDustOutput());
Coin usableBsqBalance = bsqWalletService.getAvailableBalance().subtract(getMinNonDustOutput());
return usableBsqBalance.isNegative() ? Coin.ZERO : usableBsqBalance;
}
@ -243,7 +243,7 @@ public class OfferUtil {
* @return {@code true} if the balance is sufficient, {@code false} otherwise
*/
public boolean isBsqForMakerFeeAvailable(@Nullable Coin amount) {
Coin availableBalance = bsqWalletService.getAvailableConfirmedBalance();
Coin availableBalance = bsqWalletService.getAvailableBalance();
Coin makerFee = CoinUtil.getMakerFee(false, amount);
// If we don't know yet the maker fee (amount is not set) we return true,
@ -277,7 +277,7 @@ public class OfferUtil {
}
public boolean isBsqForTakerFeeAvailable(@Nullable Coin amount) {
Coin availableBalance = bsqWalletService.getAvailableConfirmedBalance();
Coin availableBalance = bsqWalletService.getAvailableBalance();
Coin takerFee = getTakerFee(false, amount);
// If we don't know yet the maker fee (amount is not set) we return true,

View File

@ -217,14 +217,14 @@ public class MyReputationView extends ActivatableView<GridPane, Void> implements
///////////////////////////////////////////////////////////////////////////////////////////
@Override
public void onUpdateBalances(Coin availableConfirmedBalance,
public void onUpdateBalances(Coin availableBalance,
Coin availableNonBsqBalance,
Coin unverifiedBalance,
Coin unconfirmedChangeBalance,
Coin lockedForVotingBalance,
Coin lockupBondsBalance,
Coin unlockingBondsBalance) {
bsqValidator.setAvailableBalance(availableConfirmedBalance);
bsqValidator.setAvailableBalance(availableBalance);
}

View File

@ -176,7 +176,7 @@ public class AssetFeeView extends ActivatableView<GridPane, Void> implements Bsq
assetService.updateAssetStates();
updateList();
onUpdateAvailableConfirmedBalance(bsqWalletService.getAvailableConfirmedBalance());
onUpdateAvailableBalance(bsqWalletService.getAvailableBalance());
payFeeButton.setOnAction((event) -> {
Coin listingFee = getListingFee();
@ -235,7 +235,7 @@ public class AssetFeeView extends ActivatableView<GridPane, Void> implements Bsq
///////////////////////////////////////////////////////////////////////////////////////////
@Override
public void onUpdateBalances(Coin availableConfirmedBalance,
public void onUpdateBalances(Coin availableBalance,
Coin availableNonBsqBalance,
Coin unverifiedBalance,
Coin unconfirmedChangeBalance,
@ -243,7 +243,7 @@ public class AssetFeeView extends ActivatableView<GridPane, Void> implements Bsq
Coin lockupBondsBalance,
Coin unlockingBondsBalance) {
onUpdateAvailableConfirmedBalance(availableConfirmedBalance);
onUpdateAvailableBalance(availableBalance);
}
@ -278,8 +278,8 @@ public class AssetFeeView extends ActivatableView<GridPane, Void> implements Bsq
};
}
private void onUpdateAvailableConfirmedBalance(Coin availableConfirmedBalance) {
bsqValidator.setAvailableBalance(availableConfirmedBalance);
private void onUpdateAvailableBalance(Coin availableBalance) {
bsqValidator.setAvailableBalance(availableBalance);
updateButtonState();
}

View File

@ -164,7 +164,7 @@ public class ProofOfBurnView extends ActivatableView<GridPane, Void> implements
proofOfBurnService.getUpdateFlag().addListener(updateListener);
bsqWalletService.addBsqBalanceListener(this);
onUpdateAvailableConfirmedBalance(bsqWalletService.getAvailableConfirmedBalance());
onUpdateAvailableBalance(bsqWalletService.getAvailableBalance());
burnButton.setOnAction((event) -> {
Coin amount = getAmountFee();
@ -216,14 +216,14 @@ public class ProofOfBurnView extends ActivatableView<GridPane, Void> implements
///////////////////////////////////////////////////////////////////////////////////////////
@Override
public void onUpdateBalances(Coin availableConfirmedBalance,
public void onUpdateBalances(Coin availableBalance,
Coin availableNonBsqBalance,
Coin unverifiedBalance,
Coin unconfirmedChangeBalance,
Coin lockedForVotingBalance,
Coin lockupBondsBalance,
Coin unlockingBondsBalance) {
onUpdateAvailableConfirmedBalance(availableConfirmedBalance);
onUpdateAvailableBalance(availableBalance);
}
@ -255,8 +255,8 @@ public class ProofOfBurnView extends ActivatableView<GridPane, Void> implements
updateListener = observable -> updateList();
}
private void onUpdateAvailableConfirmedBalance(Coin availableConfirmedBalance) {
bsqValidator.setAvailableBalance(availableConfirmedBalance);
private void onUpdateAvailableBalance(Coin availableBalance) {
bsqValidator.setAvailableBalance(availableBalance);
updateButtonState();
}

View File

@ -51,8 +51,8 @@ import bisq.core.dao.state.model.governance.Proposal;
import bisq.core.dao.state.model.governance.Role;
import bisq.core.locale.Res;
import bisq.core.util.FormattingUtils;
import bisq.core.util.coin.BsqFormatter;
import bisq.core.util.ParsingUtils;
import bisq.core.util.coin.BsqFormatter;
import bisq.core.util.coin.CoinFormatter;
import bisq.asset.Asset;
@ -291,7 +291,7 @@ public class MakeProposalView extends ActivatableView<GridPane, Void> implements
checkNotNull(proposalDisplay.bondedRoleTypeComboBox, "proposalDisplay.bondedRoleTypeComboBox must not be null");
BondedRoleType bondedRoleType = proposalDisplay.bondedRoleTypeComboBox.getSelectionModel().getSelectedItem();
long requiredBond = daoFacade.getRequiredBond(bondedRoleType);
long availableBalance = bsqWalletService.getAvailableConfirmedBalance().value;
long availableBalance = bsqWalletService.getAvailableBalance().value;
if (requiredBond > availableBalance) {
long missing = requiredBond - availableBalance;

View File

@ -222,7 +222,7 @@ public class ProposalsView extends ActivatableView<GridPane, Void> implements Bs
stakeInputTextField.textProperty().addListener(stakeListener);
voteButton.setOnAction(e -> onVote());
onUpdateBalances(bsqWalletService.getAvailableConfirmedBalance(),
onUpdateBalances(bsqWalletService.getAvailableBalance(),
bsqWalletService.getAvailableNonBsqBalance(),
bsqWalletService.getUnverifiedBalance(),
bsqWalletService.getUnconfirmedChangeBalance(),
@ -272,7 +272,7 @@ public class ProposalsView extends ActivatableView<GridPane, Void> implements Bs
///////////////////////////////////////////////////////////////////////////////////////////
@Override
public void onUpdateBalances(Coin availableConfirmedBalance,
public void onUpdateBalances(Coin availableBalance,
Coin availableNonBsqBalance,
Coin unverifiedBalance,
Coin unconfirmedChangeBalance,
@ -281,7 +281,7 @@ public class ProposalsView extends ActivatableView<GridPane, Void> implements Bs
Coin unlockingBondsBalance) {
Coin blindVoteFee = BlindVoteConsensus.getFee(daoStateService, daoStateService.getChainHeight());
if (isBlindVotePhaseButNotLastBlock()) {
Coin availableForVoting = availableConfirmedBalance.subtract(blindVoteFee);
Coin availableForVoting = availableBalance.subtract(blindVoteFee);
if (availableForVoting.isNegative())
availableForVoting = Coin.valueOf(0);
stakeInputTextField.setPromptText(Res.get("dao.proposal.myVote.stake.prompt",

View File

@ -135,7 +135,7 @@ public class BsqBalanceUtil implements BsqBalanceListener, DaoStateListener {
private void triggerUpdate() {
onUpdateBalances(bsqWalletService.getAvailableConfirmedBalance(),
onUpdateBalances(bsqWalletService.getAvailableBalance(),
bsqWalletService.getAvailableNonBsqBalance(),
bsqWalletService.getUnverifiedBalance(),
bsqWalletService.getUnconfirmedChangeBalance(),

View File

@ -242,14 +242,14 @@ public class BsqSendView extends ActivatableView<GridPane, Void> implements BsqB
}
@Override
public void onUpdateBalances(Coin availableConfirmedBalance,
public void onUpdateBalances(Coin availableBalance,
Coin availableNonBsqBalance,
Coin unverifiedBalance,
Coin unconfirmedChangeBalance,
Coin lockedForVotingBalance,
Coin lockupBondsBalance,
Coin unlockingBondsBalance) {
updateBsqValidator(availableConfirmedBalance);
updateBsqValidator(availableBalance);
updateBtcValidator(availableNonBsqBalance);
setSendBtcGroupVisibleState(availableNonBsqBalance.isPositive());
@ -260,15 +260,15 @@ public class BsqSendView extends ActivatableView<GridPane, Void> implements BsqB
receiversAddressInputTextField.setText(tuple.second);
}
private void updateBsqValidator(Coin availableConfirmedBalance) {
bsqValidator.setAvailableBalance(availableConfirmedBalance);
private void updateBsqValidator(Coin availableBalance) {
bsqValidator.setAvailableBalance(availableBalance);
boolean isValid = bsqAddressValidator.validate(receiversAddressInputTextField.getText()).isValid &&
bsqValidator.validate(amountInputTextField.getText()).isValid;
sendBsqButton.setDisable(!isValid);
}
private void updateBtcValidator(Coin availableConfirmedBalance) {
btcValidator.setMaxValue(availableConfirmedBalance);
private void updateBtcValidator(Coin availableBalance) {
btcValidator.setMaxValue(availableBalance);
boolean isValid = btcAddressValidator.validate(receiversBtcAddressInputTextField.getText()).isValid &&
btcValidator.validate(btcAmountInputTextField.getText()).isValid;
sendBtcButton.setDisable(!isValid);
@ -359,11 +359,11 @@ public class BsqSendView extends ActivatableView<GridPane, Void> implements BsqB
amountInputTextField.refreshValidation();
}
// We have used input selection it is the sum of our selected inputs, otherwise the availableConfirmedBalance
// We have used input selection it is the sum of our selected inputs, otherwise the availableBalance
private Coin getSpendableBsqBalance() {
return bsqUtxoCandidates != null ?
Coin.valueOf(bsqUtxoCandidates.stream().mapToLong(e -> e.getValue().value).sum()) :
bsqWalletService.getAvailableConfirmedBalance();
bsqWalletService.getAvailableBalance();
}
private void setSendBtcGroupVisibleState(boolean visible) {

View File

@ -268,7 +268,7 @@ public class BsqTxView extends ActivatableView<GridPane, Void> implements BsqBal
///////////////////////////////////////////////////////////////////////////////////////////
@Override
public void onUpdateBalances(Coin availableConfirmedBalance,
public void onUpdateBalances(Coin availableBalance,
Coin availableNonBsqBalance,
Coin unverifiedBalance,
Coin unconfirmedChangeBalance,

View File

@ -420,7 +420,7 @@ public abstract class MutableOfferDataModel extends OfferDataModel implements Bs
}
@Override
public void onUpdateBalances(Coin availableConfirmedBalance,
public void onUpdateBalances(Coin availableBalance,
Coin availableNonBsqBalance,
Coin unverifiedBalance,
Coin unconfirmedChangeBalance,

View File

@ -672,7 +672,7 @@ class TakeOfferDataModel extends OfferDataModel {
// we have to keep a minimum amount of BSQ == bitcoin dust limit
// otherwise there would be dust violations for change UTXOs
// essentially means the minimum usable balance of BSQ is 5.46
Coin usableBsqBalance = bsqWalletService.getAvailableConfirmedBalance().subtract(Restrictions.getMinNonDustOutput());
Coin usableBsqBalance = bsqWalletService.getAvailableBalance().subtract(Restrictions.getMinNonDustOutput());
if (usableBsqBalance.isNegative())
usableBsqBalance = Coin.ZERO;
return usableBsqBalance;

View File

@ -60,7 +60,7 @@ public final class BsqEmptyWalletWindow extends Overlay<BsqEmptyWalletWindow> {
gridPane.getColumnConstraints().remove(1);
addTopLabelTextField(gridPane, ++rowIndex, Res.get("emptyWalletWindow.balance"),
bsqFormatter.formatCoinWithCode(bsqWalletService.getAvailableConfirmedBalance()), 10);
bsqFormatter.formatCoinWithCode(bsqWalletService.getAvailableBalance()), 10);
addTopLabelTextField(gridPane, ++rowIndex, Res.get("emptyWalletWindow.bsq.btcBalance"),
bsqFormatter.formatBTCWithCode(bsqWalletService.getAvailableNonBsqBalance().value), 10);

View File

@ -103,7 +103,7 @@ public final class BtcEmptyWalletWindow extends Overlay<BtcEmptyWalletWindow> {
private void addContent() {
addMultilineLabel(gridPane, ++rowIndex, Res.get("emptyWalletWindow.info"), 0);
Coin totalBalance = btcWalletService.getAvailableConfirmedBalance();
Coin totalBalance = btcWalletService.getAvailableBalance();
balanceTextField = addTopLabelTextField(gridPane, ++rowIndex, Res.get("emptyWalletWindow.balance"),
btcFormatter.formatCoinWithCode(totalBalance), 10).second;
@ -164,7 +164,7 @@ public final class BtcEmptyWalletWindow extends Overlay<BtcEmptyWalletWindow> {
aesKey,
() -> {
closeButton.updateText(Res.get("shared.close"));
balanceTextField.setText(btcFormatter.formatCoinWithCode(btcWalletService.getAvailableConfirmedBalance()));
balanceTextField.setText(btcFormatter.formatCoinWithCode(btcWalletService.getAvailableBalance()));
emptyWalletButton.setDisable(true);
log.debug("wallet empty successful");
onClose(() -> UserThread.runAfter(() -> new Popup()

View File

@ -119,7 +119,7 @@ public class CreateOfferViewModelTest {
when(accountAgeWitnessService.getMyTradeLimit(any(), any(), any())).thenReturn(100000000L);
when(preferences.getUserCountry()).thenReturn(new Country("ES", "Spain", null));
when(bsqFormatter.formatCoin(any())).thenReturn("0");
when(bsqWalletService.getAvailableConfirmedBalance()).thenReturn(Coin.ZERO);
when(bsqWalletService.getAvailableBalance()).thenReturn(Coin.ZERO);
when(createOfferService.getRandomOfferId()).thenReturn(UUID.randomUUID().toString());
when(tradeStats.getObservableTradeStatisticsSet()).thenReturn(FXCollections.observableSet());

View File

@ -94,7 +94,7 @@ public class EditOfferDataModelTest {
when(accountAgeWitnessService.getMyTradeLimit(any(), any(), any())).thenReturn(100000000L);
when(preferences.getUserCountry()).thenReturn(new Country("US", "United States", null));
when(bsqFormatter.formatCoin(any())).thenReturn("0");
when(bsqWalletService.getAvailableConfirmedBalance()).thenReturn(Coin.ZERO);
when(bsqWalletService.getAvailableBalance()).thenReturn(Coin.ZERO);
when(createOfferService.getRandomOfferId()).thenReturn(UUID.randomUUID().toString());
model = new EditOfferDataModel(createOfferService,

View File

@ -620,7 +620,7 @@ message BalancesInfo {
}
message BsqBalanceInfo {
uint64 availableConfirmedBalance = 1;
uint64 availableConfirmedBalance = 1; // todo rename to availableBalance if possible
uint64 unverifiedBalance = 2;
uint64 unconfirmedChangeBalance = 3;
uint64 lockedForVotingBalance = 4;