From 005b9317d238420fcb931e36dd0cba143e640129 Mon Sep 17 00:00:00 2001 From: Tian Qin Date: Mon, 16 Sep 2024 11:51:08 -0400 Subject: [PATCH] set operator params in vault default genensis --- protocol/x/vault/types/genesis.go | 1 + protocol/x/vault/types/params.go | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/protocol/x/vault/types/genesis.go b/protocol/x/vault/types/genesis.go index 88bed0f395..90cc1b2209 100644 --- a/protocol/x/vault/types/genesis.go +++ b/protocol/x/vault/types/genesis.go @@ -4,6 +4,7 @@ package types func DefaultGenesis() *GenesisState { return &GenesisState{ DefaultQuotingParams: DefaultQuotingParams(), + OperatorParams: DefaultOperatorParams(), } } diff --git a/protocol/x/vault/types/params.go b/protocol/x/vault/types/params.go index a8e1963e8e..4236d981d1 100644 --- a/protocol/x/vault/types/params.go +++ b/protocol/x/vault/types/params.go @@ -4,6 +4,7 @@ import ( "math" "github.com/dydxprotocol/v4-chain/protocol/dtypes" + "github.com/dydxprotocol/v4-chain/protocol/lib" ) // DefaultQuotingParams returns a default set of `x/vault` parameters. @@ -70,3 +71,10 @@ func (o OperatorParams) Validate() error { return nil } + +// DefaultOperatorParams returns a default set of `x/vault` operator parameters. +func DefaultOperatorParams() OperatorParams { + return OperatorParams{ + Operator: lib.GovModuleAddress.String(), + } +}