mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Use display unit instead of hardcoded DRK for darksend warning
This commit is contained in:
parent
36acf7e57a
commit
a80da619a7
@ -454,9 +454,14 @@ void OverviewPage::darksendReset(){
|
||||
void OverviewPage::toggleDarksend(){
|
||||
if(!fEnableDarksend){
|
||||
int64_t balance = pwalletMain->GetBalance();
|
||||
if(balance < 1.49*COIN){
|
||||
float minAmount = 1.49 * COIN;
|
||||
if(balance < minAmount){
|
||||
QString strMinAmount(
|
||||
BitcoinUnits::formatWithUnit(
|
||||
walletModel->getOptionsModel()->getDisplayUnit(),
|
||||
minAmount));
|
||||
QMessageBox::warning(this, tr("Darksend"),
|
||||
tr("Darksend requires at least 1.5 DRK to use."),
|
||||
tr("Darksend requires at least %1 to use.").arg(strMinAmount),
|
||||
QMessageBox::Ok, QMessageBox::Ok);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user