Skip to content

Commit

Permalink
fix: consider all delegation strategies (#4938)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Nov 26, 2024
1 parent 087dedb commit 93da516
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/views/DelegateView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,13 @@ async function getDelegatesWithScore() {
);
uniqueDelegators.forEach(delegate => {
const delegationScore = scores[0];
Object.entries(delegationScore).forEach(([address, score]) => {
if (address === delegate.delegate) {
delegate.score = score;
}
delegate.score = 0;
scores.forEach(delegationScore => {
Object.entries(delegationScore).forEach(([address, score]) => {
if (address === delegate.delegate) {
delegate.score += score;
}
});
});
});
Expand Down

0 comments on commit 93da516

Please sign in to comment.