diff --git a/x/alliance/genesis.go b/x/alliance/genesis.go index e6c23c05..2ace1f42 100644 --- a/x/alliance/genesis.go +++ b/x/alliance/genesis.go @@ -26,8 +26,8 @@ func ValidateGenesis(data *types.GenesisState) error { func DefaultGenesisState() *types.GenesisState { return &types.GenesisState{ Params: types.Params{ - RewardDelayTime: 24 * 60 * 60 * 1000_000_000, - TakeRateClaimInterval: 5 * 60 * 1000_000_000, + RewardDelayTime: time.Hour * 24 * 7, + TakeRateClaimInterval: time.Minute * 5, LastTakeRateClaimTime: time.Now(), }, Assets: []types.AllianceAsset{}, diff --git a/x/alliance/keeper/grpc_query_test.go b/x/alliance/keeper/grpc_query_test.go index b4c40421..48bd5e19 100644 --- a/x/alliance/keeper/grpc_query_test.go +++ b/x/alliance/keeper/grpc_query_test.go @@ -228,7 +228,7 @@ func TestQueryParams(t *testing.T) { // THEN: VALIDATE THAT NO ERRORS HAVE BEEN PRODUCED AND OUTPUT IS AS WE EXPECT require.Nil(t, err) - require.Equal(t, queyParams.Params.RewardDelayTime, time.Hour) + require.Equal(t, queyParams.Params.RewardDelayTime, time.Hour*24*7) require.Equal(t, queyParams.Params.TakeRateClaimInterval, time.Minute*5) // there is no way to match the exact time when the module is being instantiated diff --git a/x/alliance/types/params.go b/x/alliance/types/params.go index 5ba4c306..7234a6af 100644 --- a/x/alliance/types/params.go +++ b/x/alliance/types/params.go @@ -47,7 +47,7 @@ func validateTime(i interface{}) error { // NewParams creates a new Params instance func NewParams() Params { return Params{ - RewardDelayTime: time.Hour, + RewardDelayTime: time.Hour * 24 * 7, TakeRateClaimInterval: time.Minute * 5, LastTakeRateClaimTime: time.Now(), }