Skip to content

Commit

Permalink
Merge pull request #243 from anoma/fix-validator-rewards
Browse files Browse the repository at this point in the history
fix: fetch validators rewards
  • Loading branch information
Fraccaman authored Jan 8, 2025
2 parents cf98c8e + da7329d commit 2f1d085
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rewards/src/services/namada.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ pub async fn query_delegation_pairs(
data.into_iter()
.fold(HashSet::new(), |mut acc, (bond_id, _)| {
acc.insert(DelegationPair {
validator_address: Id::from(bond_id.validator),
validator_address: Id::from(bond_id.validator.clone()),
delegator_address: Id::from(bond_id.source),
});
acc.insert(DelegationPair {
validator_address: Id::from(bond_id.validator.clone()),
delegator_address: Id::from(bond_id.validator),
});
acc
});

Expand Down

0 comments on commit 2f1d085

Please sign in to comment.