import * as _m0 from "protobufjs/minimal"; import { DeepPartial } from "../../helpers"; /** Params holds parameters for the superfluid module */ export interface Params { /** * minimum_risk_factor is to be cut on OSMO equivalent value of lp tokens for * superfluid staking, default: 5%. The minimum risk factor works * to counter-balance the staked amount on chain's exposure to various asset * volatilities, and have base staking be 'resistant' to volatility. */ minimumRiskFactor: string; } /** Params holds parameters for the superfluid module */ export interface ParamsSDKType { /** * minimum_risk_factor is to be cut on OSMO equivalent value of lp tokens for * superfluid staking, default: 5%. The minimum risk factor works * to counter-balance the staked amount on chain's exposure to various asset * volatilities, and have base staking be 'resistant' to volatility. */ minimum_risk_factor: string; } function createBaseParams(): Params { return { minimumRiskFactor: "" }; } export const Params = { encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.minimumRiskFactor !== "") { writer.uint32(10).string(message.minimumRiskFactor); } return writer; }, decode(input: _m0.Reader | Uint8Array, length?: number): Params { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseParams(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: message.minimumRiskFactor = reader.string(); break; default: reader.skipType(tag & 7); break; } } return message; }, fromPartial(object: DeepPartial): Params { const message = createBaseParams(); message.minimumRiskFactor = object.minimumRiskFactor ?? ""; return message; } };