Skip to content

Commit

Permalink
fixed lockups
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchyn committed Mar 18, 2024
1 parent adbcc4f commit a6794aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshotter/stake.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const processLockups = async (delegators) => {
}

lockupResults.forEach(result => {
delegators[result.account_id] = delegators[result.account_id] + delegators[result.lockupAccount];
delegators[result.account_id] = (delegators[result.account_id] ?? 0) + delegators[result.lockupAccount];
delete delegators[result.lockupAccount];
});

Expand Down

0 comments on commit a6794aa

Please sign in to comment.