Skip to content

Commit

Permalink
Fix for future swap owner rewards calc
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl committed May 26, 2022
1 parent f3ef5eb commit dc9790f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/masternodes/mn_checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<CFuturesUserKey, CFuturesUserValue> userFuturesValues;

Expand Down

0 comments on commit dc9790f

Please sign in to comment.