mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
fixed min IX fee
This commit is contained in:
parent
f811957208
commit
454154c18f
@ -47,6 +47,7 @@ SendCoinsDialog::SendCoinsDialog(QWidget *parent) :
|
||||
connect(ui->checkBoxCoinControlChange, SIGNAL(stateChanged(int)), this, SLOT(coinControlChangeChecked(int)));
|
||||
connect(ui->lineEditCoinControlChange, SIGNAL(textEdited(const QString &)), this, SLOT(coinControlChangeEdited(const QString &)));
|
||||
connect(ui->checkUseDarksend, SIGNAL(stateChanged ( int )), this, SLOT(updateDisplayUnit()));
|
||||
connect(ui->checkInstantX, SIGNAL(stateChanged ( int )), this, SLOT(updateDisplayUnit()));
|
||||
|
||||
// Coin Control: clipboard actions
|
||||
QAction *clipboardQuantityAction = new QAction(tr("Copy quantity"), this);
|
||||
|
@ -1873,9 +1873,6 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64_t> >& vecSend,
|
||||
dPriority += (double)nCredit * (pcoin.first->GetDepthInMainChain()+1);
|
||||
}
|
||||
|
||||
// IX has a minimum fee of 0.01 DRK
|
||||
if(useIX && nFeeRet < COIN*0.01 ) nFeeRet = COIN*0.01;
|
||||
|
||||
int64_t nChange = nValueIn - nValue - nFeeRet;
|
||||
|
||||
// The following if statement should be removed once enough miners
|
||||
@ -1893,6 +1890,10 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64_t> >& vecSend,
|
||||
if(coin_type == ONLY_DENOMINATED) {
|
||||
nFeeRet = nChange;
|
||||
nChange = 0;
|
||||
} else if(useIX && nFeeRet < COIN*0.01 && nChange > ((COIN*0.01)-nFeeRet)) {
|
||||
// IX has a minimum fee of 0.01 DRK
|
||||
nChange -= (COIN*0.01)-nFeeRet;
|
||||
nFeeRet = COIN*0.01;
|
||||
}
|
||||
|
||||
if (nChange > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user