Use display unit instead of hardcoded DRK for darksend hint

This commit is contained in:
vertoe 2015-01-15 12:20:09 +01:00
parent a80da619a7
commit fb312b0cd3

View File

@ -148,7 +148,12 @@ void SendCoinsDialog::on_sendButton_clicked()
if(ui->checkUseDarksend->isChecked()) { if(ui->checkUseDarksend->isChecked()) {
recipients[0].inputType = "ONLY_DENOMINATED"; recipients[0].inputType = "ONLY_DENOMINATED";
strFunds = "Using <b>Anonymous Funds</b>"; strFunds = "Using <b>Anonymous Funds</b>";
strFee = "(Darksend requires this amount to be rounded up to the nearest 0.1DRK)"; QString strNearestAmount(
BitcoinUnits::formatWithUnit(
model->getOptionsModel()->getDisplayUnit(), 0.1 * COIN));
strFee = QString(
"(Darksend requires this amount to be rounded up to the nearest %1.)"
).arg(strNearestAmount);
} else { } else {
recipients[0].inputType = "ALL_COINS"; recipients[0].inputType = "ALL_COINS";
strFunds = "Using <b>ANY AVAILABLE Funds</b>"; strFunds = "Using <b>ANY AVAILABLE Funds</b>";