Skip to content

Commit

Permalink
Add convenience setter for LiquidityProviderReward
Browse files Browse the repository at this point in the history
  • Loading branch information
RavenXce committed Nov 6, 2020
1 parent 2741149 commit 8ee29a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/distribution/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ func (k Keeper) GetLiquidityProviderReward(ctx sdk.Context) (percent sdk.Dec) {
return percent
}

// SetLiquidityProviderReward returns the current distribution liquidity provider reward rate.
func (k Keeper) SetLiquidityProviderReward(ctx sdk.Context, percent sdk.Dec) {
k.paramSpace.Set(ctx, types.ParamStoreKeyLiquidityProviderReward, percent)
}

// GetWithdrawAddrEnabled returns the current distribution withdraw address
// enabled parameter.
func (k Keeper) GetWithdrawAddrEnabled(ctx sdk.Context) (enabled bool) {
Expand Down

0 comments on commit 8ee29a1

Please sign in to comment.