mirror of
https://github.com/overte-org/overte.git
synced 2025-07-29 19:50:32 +02:00
fix rate of payment for assignments
This commit is contained in:
parent
164d3c5fb3
commit
40c59a3589
1 changed files with 3 additions and 2 deletions
|
@ -731,10 +731,11 @@ void DomainServer::setupPendingAssignmentCredits() {
|
||||||
qint64 elapsedMsecsSinceLastPayment = nodeData->getPaymentIntervalTimer().elapsed();
|
qint64 elapsedMsecsSinceLastPayment = nodeData->getPaymentIntervalTimer().elapsed();
|
||||||
nodeData->getPaymentIntervalTimer().restart();
|
nodeData->getPaymentIntervalTimer().restart();
|
||||||
|
|
||||||
const float CREDITS_PER_HOUR = 3;
|
const float CREDITS_PER_HOUR = 0.10;
|
||||||
const float CREDITS_PER_MSEC = CREDITS_PER_HOUR / (60 * 60 * 1000);
|
const float CREDITS_PER_MSEC = CREDITS_PER_HOUR / (60 * 60 * 1000);
|
||||||
|
const int SATOSHIS_PER_MSEC = CREDITS_PER_MSEC * powf(10, 8);
|
||||||
|
|
||||||
float pendingCredits = elapsedMsecsSinceLastPayment * CREDITS_PER_MSEC;
|
float pendingCredits = elapsedMsecsSinceLastPayment * SATOSHIS_PER_MSEC;
|
||||||
|
|
||||||
if (existingTransaction) {
|
if (existingTransaction) {
|
||||||
existingTransaction->incrementAmount(pendingCredits);
|
existingTransaction->incrementAmount(pendingCredits);
|
||||||
|
|
Loading…
Reference in a new issue