mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
18 lines
507 B
Go
18 lines
507 B
Go
package keeper
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/kava-labs/kava/x/liquidator/types"
|
|
)
|
|
|
|
// GetParams returns the params for liquidator module
|
|
func (k Keeper) GetParams(ctx sdk.Context) types.LiquidatorParams {
|
|
var params types.LiquidatorParams
|
|
k.paramSubspace.GetParamSet(ctx, ¶ms)
|
|
return params
|
|
}
|
|
|
|
// SetParams sets params for the liquidator module
|
|
func (k Keeper) SetParams(ctx sdk.Context, params types.LiquidatorParams) {
|
|
k.paramSubspace.SetParamSet(ctx, ¶ms)
|
|
} |