Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jcompagni10 committed Sep 9, 2024
1 parent 33f4eeb commit 76fc5d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/dex/keeper/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,10 @@ func (k Keeper) GetAllPoolShareholders(ctx sdk.Context) map[uint64][]types.PoolS
balances := k.bankKeeper.GetAccountsBalances(ctx)
for _, balance := range balances {
for _, coin := range balance.Coins {
// Check if the Denom is a PoolShare denom
poolID, err := types.ParsePoolIDFromDenom(coin.Denom)
if err != nil {
// This is not a PoolShare denom
continue
}
shareholderInfo := types.PoolShareholder{Address: balance.Address, Shares: coin.Amount}
Expand Down

0 comments on commit 76fc5d3

Please sign in to comment.