Skip to content

Commit

Permalink
merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
keruch committed Sep 16, 2024
1 parent ffb7351 commit 90d79e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions x/incentives/keeper/gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,6 @@ func (k Keeper) AddToGaugeRewards(ctx sdk.Context, owner sdk.AccAddress, coins s
return nil
}

// AddToGaugeRewardsByID adds coins to gauge.
// TODO: Used only in x/streamer. Delete after https://github.com/dymensionxyz/dymension/pull/1173 is merged!
func (k Keeper) AddToGaugeRewardsByID(ctx sdk.Context, owner sdk.AccAddress, coins sdk.Coins, gaugeID uint64) error {
gauge, err := k.GetGaugeByID(ctx, gaugeID)
if err != nil {
return err
}
return k.AddToGaugeRewards(ctx, owner, coins, gauge)
}

// GetGaugeByID returns gauge from gauge ID.
func (k Keeper) GetGaugeByID(ctx sdk.Context, gaugeID uint64) (*types.Gauge, error) {
gauge := types.Gauge{}
Expand Down
1 change: 0 additions & 1 deletion x/streamer/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type IncentivesKeeper interface {
GetGaugeByID(ctx sdk.Context, gaugeID uint64) (*incentivestypes.Gauge, error)
Distribute(ctx sdk.Context, gauges []incentivestypes.Gauge, cache incentivestypes.DenomLocksCache, epochEnd bool) (sdk.Coins, error)
GetDistributeToBaseLocks(ctx sdk.Context, gauge incentivestypes.Gauge, cache incentivestypes.DenomLocksCache) []lockuptypes.PeriodLock
AddToGaugeRewardsByID(ctx sdk.Context, owner sdk.AccAddress, coins sdk.Coins, gaugeID uint64) error
}

type SponsorshipKeeper interface {
Expand Down

0 comments on commit 90d79e3

Please sign in to comment.