change defaults
This commit is contained in:
@@ -189,7 +189,8 @@ void MainWindow::setupSettingsModal() {
|
|||||||
|
|
||||||
void MainWindow::donate() {
|
void MainWindow::donate() {
|
||||||
// Set up a donation to me :)
|
// 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->Address1->setCursorPosition(0);
|
||||||
ui->Amount1->setText("0.01");
|
ui->Amount1->setText("0.01");
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,17 @@ const QString Utils::getTokenName() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString Utils::getDonationAddr() {
|
const QString Utils::getDonationAddr(bool sapling) {
|
||||||
if (Settings::getInstance()->isTestnet())
|
if (Settings::getInstance()->isTestnet())
|
||||||
return "tmP1JL19JyJh3jPMUbfovk4W67jB7VJWybu";
|
if (sapling)
|
||||||
|
return "ztestsapling1kdp74adyfsmm9838jaupgfyx3npgw8ut63stjjx757pc248cuc0ymzphqeux60c64qe5qt68ygh";
|
||||||
|
else
|
||||||
|
return "ztbGDqgkmXQjheivgeirwEvJLD4SUNqsWCGwxwVg4YpGz1ARR8P2rXaptkT14z3NDKamcxNmQuvmvktyokMs7HkutRNSx1D";
|
||||||
else
|
else
|
||||||
return "t1KfJJrSuVYmnNLrw7EZHRv1kZY3zdGGLyb";
|
if (sapling)
|
||||||
|
return "zs1gv64eu0v2wx7raxqxlmj354y9ycznwaau9kduljzczxztvs4qcl00kn2sjxtejvrxnkucw5xx9u";
|
||||||
|
else
|
||||||
|
return "zcEgrceTwvoiFdEvPWcsJHAMrpLsprMF6aRJiQa3fan5ZphyXLPuHghnEPrEPRoEVzUy65GnMVyCTRdkT6BYBepnXh6NBYs";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the dev fee address based on the transaction
|
// Get the dev fee address based on the transaction
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public:
|
|||||||
|
|
||||||
static const QString getTokenName();
|
static const QString getTokenName();
|
||||||
static const QString getDevAddr(Tx tx);
|
static const QString getDevAddr(Tx tx);
|
||||||
static const QString getDonationAddr();
|
static const QString getDonationAddr(bool sapling);
|
||||||
|
|
||||||
static double getMinerFee();
|
static double getMinerFee();
|
||||||
static double getDevFee();
|
static double getDevFee();
|
||||||
|
|||||||
Reference in New Issue
Block a user