Skip to content

Commit 58a24ec

Browse files
committed
Remove aff params
1 parent dc8e76f commit 58a24ec

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

proto/dydxprotocol/affiliates/genesis.proto

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ option go_package = "github.com/dydxprotocol/v4-chain/protocol/x/affiliates/type
99
message GenesisState {
1010
// The list of affiliate tiers
1111
AffiliateTiers affiliate_tiers = 1 [ (gogoproto.nullable) = false ];
12-
13-
// The affiliate parameters
14-
AffiliateParameters affiliate_parameters = 2 [ (gogoproto.nullable) = false ];
1512
}

protocol/x/affiliates/genesis.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState)
1212
if err != nil {
1313
panic(err)
1414
}
15-
16-
err = k.UpdateAffiliateParameters(ctx, &types.MsgUpdateAffiliateParameters{
17-
AffiliateParameters: genState.AffiliateParameters,
18-
})
19-
if err != nil {
20-
panic(err)
21-
}
2215
}
2316

2417
// ExportGenesis returns the module's exported genesis.
@@ -28,13 +21,7 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState {
2821
panic(err)
2922
}
3023

31-
affiliateParameters, err := k.GetAffiliateParameters(ctx)
32-
if err != nil {
33-
panic(err)
34-
}
35-
3624
return &types.GenesisState{
37-
AffiliateTiers: affiliateTiers,
38-
AffiliateParameters: affiliateParameters,
25+
AffiliateTiers: affiliateTiers,
3926
}
4027
}

protocol/x/affiliates/types/genesis.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ package types
33
// DefaultGenesis returns the default stats genesis state.
44
func DefaultGenesis() *GenesisState {
55
return &GenesisState{
6-
AffiliateTiers: DefaultAffiliateTiers,
7-
AffiliateParameters: DefaultAffiliateParameters,
6+
AffiliateTiers: DefaultAffiliateTiers,
87
}
98
}
109

0 commit comments

Comments
 (0)