Skip to content

Commit

Permalink
fix: PRT - fixing total stake amount taking only stake size into cons…
Browse files Browse the repository at this point in the history
…ideration
  • Loading branch information
ranlavanet committed Oct 17, 2024
1 parent 13593b4 commit b52ee8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protocol/statetracker/updaters/pairing_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,13 @@ func (pu *PairingUpdater) filterPairingListByEndpoint(ctx context.Context, curre
pairingEndpoints[idx] = endp
}
lavasession.SortByGeolocations(pairingEndpoints, currentGeo)
totalStakeIncludingDelegation := sdk.Coin{Denom: provider.Stake.Denom, Amount: provider.Stake.Amount.Add(provider.DelegateTotal.Amount)}
pairing[uint64(providerIdx)] = lavasession.NewConsumerSessionWithProvider(
provider.Address,
pairingEndpoints,
maxCu,
epoch,
provider.Stake,
totalStakeIncludingDelegation,
)
}
if len(pairing) == 0 {
Expand Down

0 comments on commit b52ee8d

Please sign in to comment.