Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
likhita-809 committed Sep 20, 2023
1 parent a384e45 commit 5bf3ab6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions x/distribution/keeper/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"github.com/cosmos/cosmos-sdk/x/distribution/types"
)

const poolModuleName = "protocol-pool"

// Migrator is a struct for handling in-place store migrations.
type Migrator struct {
keeper Keeper
Expand Down
4 changes: 4 additions & 0 deletions x/distribution/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ func (k msgServer) WithdrawValidatorCommission(ctx context.Context, msg *types.M
return &types.MsgWithdrawValidatorCommissionResponse{Amount: amount}, nil
}

// NOTE: DO NOT USE
// This method uses deprecated messages. Use FundCommunityPool from x/pool module instead.
func (k msgServer) FundCommunityPool(ctx context.Context, msg *types.MsgFundCommunityPool) (*types.MsgFundCommunityPoolResponse, error) { //nolint:staticcheck // we're using a deprecated call for compatibility
sdkCtx := sdk.UnwrapSDKContext(ctx)

Expand Down Expand Up @@ -159,6 +161,8 @@ func (k msgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams)
return &types.MsgUpdateParamsResponse{}, nil
}

// NOTE: DO NOT USE
// This method uses deprecated messages. Use CommunityPoolSpend from x/pool module instead.
func (k msgServer) CommunityPoolSpend(ctx context.Context, msg *types.MsgCommunityPoolSpend) (*types.MsgCommunityPoolSpendResponse, error) { //nolint:staticcheck // we're using a deprecated call for compatibility
sdkCtx := sdk.UnwrapSDKContext(ctx)

Expand Down
2 changes: 1 addition & 1 deletion x/pool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ sidebar_position: 1

# `x/pool`

Functionality to handle community pool funds. This provides a separate module account for community pool making it easier to track the pool assets.
Functionality to handle community pool funds. This provides a separate module account for community pool making it easier to track the pool assets. We no longer track community pool assets in distribution module, but instead in this pool module. Funds are migrated from the distribution module's community pool to pool's module account.

0 comments on commit 5bf3ab6

Please sign in to comment.