Skip to content

Commit

Permalink
Merge pull request #4177 from jmacxx/fix_issue_3709
Browse files Browse the repository at this point in the history
Display the BSQ amount correctly in issuance log message
  • Loading branch information
ripcurlx authored Apr 17, 2020
2 parents 2db90cf + f49445e commit 4fd8be6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import bisq.core.dao.state.model.governance.IssuanceType;
import bisq.core.dao.state.model.governance.ReimbursementProposal;

import bisq.common.util.MathUtils;

import javax.inject.Inject;

import java.util.Optional;
Expand Down Expand Up @@ -85,7 +87,7 @@ public void issueBsq(IssuanceProposal issuanceProposal, int chainHeight) {
StringBuilder sb = new StringBuilder();
sb.append("\n################################################################################\n");
sb.append("We issued new BSQ to tx with ID ").append(txOutput.getTxId())
.append("\nIssued BSQ: ").append(issuanceProposal.getRequestedBsq())
.append("\nIssued BSQ: ").append(MathUtils.scaleDownByPowerOf10(amount, 2))
.append("\nIssuance type: ").append(issuanceType.name())
.append("\n################################################################################\n");
log.info(sb.toString());
Expand Down

0 comments on commit 4fd8be6

Please sign in to comment.