From dc9790f15c6094f9bb22dde21dd49e8cb087c02c Mon Sep 17 00:00:00 2001 From: Prasanna Loganathar Date: Thu, 26 May 2022 09:29:24 +0530 Subject: [PATCH] Fix for future swap owner rewards calc --- src/masternodes/mn_checks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/masternodes/mn_checks.cpp b/src/masternodes/mn_checks.cpp index 37c432ac4d5..659440636b5 100644 --- a/src/masternodes/mn_checks.cpp +++ b/src/masternodes/mn_checks.cpp @@ -1542,6 +1542,8 @@ class CCustomTxApplyVisitor : public CCustomTxVisitor CDataStructureV0 liveKey{AttributeTypes::Live, ParamIDs::Economy, EconomyKeys::DFIP2203Current}; auto balances = attributes->GetValue(liveKey, CBalances{}); + CalculateOwnerRewards(obj.owner); + if (obj.withdraw) { std::map userFuturesValues;