Skip to content

Commit fa47b79

Browse files
committed
refactor: missing usage of MasternodePayments::PlatformShare
1 parent fadd425 commit fa47b79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/evo/creditpool.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <logging.h>
1313
#include <validation.h>
1414
#include <node/blockstorage.h>
15+
#include <masternode/payments.h>
1516

1617
#include <algorithm>
1718
#include <exception>
@@ -241,7 +242,7 @@ bool CCreditPoolDiff::SetTarget(const CTransaction& tx, TxValidationState& state
241242
for (const CTxOut& txout : tx.vout) {
242243
blockReward += txout.nValue;
243244
}
244-
masternodeReward = 0.375 * GetMasternodePayment(cbTx.nHeight, blockReward, params.BRRHeight);
245+
masternodeReward = MasternodePayments::PlatformShare(GetMasternodePayment(cbTx.nHeight, blockReward, params.BRRHeight));
245246
LogPrintf("CreditPool: set target to %lld with MN reward %lld\n", *targetBalance, masternodeReward);
246247

247248
return true;

0 commit comments

Comments
 (0)