Browse Source

change defaults

recurring
Aditya Kulkarni 6 years ago
parent
commit
e2a61d6b09
  1. 3
      src/mainwindow.cpp
  2. 12
      src/utils.cpp
  3. 2
      src/utils.h

3
src/mainwindow.cpp

@ -189,7 +189,8 @@ void MainWindow::setupSettingsModal() {
void MainWindow::donate() {
// Set up a donation to me :)
ui->Address1->setText(Utils::getDonationAddr());
ui->Address1->setText(Utils::getDonationAddr(
Settings::getInstance()->isSaplingAddress(ui->inputsCombo->currentText())));
ui->Address1->setCursorPosition(0);
ui->Amount1->setText("0.01");

12
src/utils.cpp

@ -12,11 +12,17 @@ const QString Utils::getTokenName() {
}
}
const QString Utils::getDonationAddr() {
const QString Utils::getDonationAddr(bool sapling) {
if (Settings::getInstance()->isTestnet())
return "tmP1JL19JyJh3jPMUbfovk4W67jB7VJWybu";
if (sapling)
return "ztestsapling1kdp74adyfsmm9838jaupgfyx3npgw8ut63stjjx757pc248cuc0ymzphqeux60c64qe5qt68ygh";
else
return "ztbGDqgkmXQjheivgeirwEvJLD4SUNqsWCGwxwVg4YpGz1ARR8P2rXaptkT14z3NDKamcxNmQuvmvktyokMs7HkutRNSx1D";
else
return "t1KfJJrSuVYmnNLrw7EZHRv1kZY3zdGGLyb";
if (sapling)
return "zs1gv64eu0v2wx7raxqxlmj354y9ycznwaau9kduljzczxztvs4qcl00kn2sjxtejvrxnkucw5xx9u";
else
return "zcEgrceTwvoiFdEvPWcsJHAMrpLsprMF6aRJiQa3fan5ZphyXLPuHghnEPrEPRoEVzUy65GnMVyCTRdkT6BYBepnXh6NBYs";
}
// Get the dev fee address based on the transaction

2
src/utils.h

@ -13,7 +13,7 @@ public:
static const QString getTokenName();
static const QString getDevAddr(Tx tx);
static const QString getDonationAddr();
static const QString getDonationAddr(bool sapling);
static double getMinerFee();
static double getDevFee();

Loading…
Cancel
Save