Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Jan 29, 2019
1 parent a7dbbf4 commit ed5e5e6
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ private void addSendBsqGroup() {
txSize,
receiversAddressInputTextField.getText(),
bsqFormatter,
btcFormatter,
() -> {
receiversAddressInputTextField.setText("");
amountInputTextField.setText("");
Expand Down Expand Up @@ -298,6 +299,7 @@ private void addSendBtcGroup() {
miningFee,
txSize, receiversBtcAddressInputTextField.getText(),
btcFormatter,
btcFormatter,
() -> {
receiversBtcAddressInputTextField.setText("");
btcAmountInputTextField.setText("");
Expand Down Expand Up @@ -330,16 +332,17 @@ private void showTxPopup(Coin receiverAmount,
Transaction txWithBtcFee,
Coin miningFee,
int txSize, String address,
BSFormatter formatter,
BSFormatter amountFormatter, // can be BSQ or BTC formatter
BSFormatter feeFormatter,
ResultHandler resultHandler) {
new Popup<>().headLine(Res.get("dao.wallet.send.sendFunds.headline"))
.confirmation(Res.get("dao.wallet.send.sendFunds.details",
formatter.formatCoinWithCode(receiverAmount),
amountFormatter.formatCoinWithCode(receiverAmount),
address,
formatter.formatCoinWithCode(miningFee),
feeFormatter.formatCoinWithCode(miningFee),
CoinUtil.getFeePerByte(miningFee, txSize),
txSize / 1000d,
formatter.formatCoinWithCode(receiverAmount)))
amountFormatter.formatCoinWithCode(receiverAmount)))
.actionButtonText(Res.get("shared.yes"))
.onAction(() -> {
walletsManager.publishAndCommitBsqTx(txWithBtcFee, new TxBroadcaster.Callback() {
Expand Down

0 comments on commit ed5e5e6

Please sign in to comment.