Skip to content

Commit

Permalink
set operator params in vault default genensis
Browse files Browse the repository at this point in the history
  • Loading branch information
tqin7 committed Sep 16, 2024
1 parent c8479f1 commit 005b931
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions protocol/x/vault/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package types
func DefaultGenesis() *GenesisState {
return &GenesisState{
DefaultQuotingParams: DefaultQuotingParams(),
OperatorParams: DefaultOperatorParams(),
}
}

Expand Down
8 changes: 8 additions & 0 deletions protocol/x/vault/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(),
}
}

0 comments on commit 005b931

Please sign in to comment.