Skip to content

Commit

Permalink
added default epoch duration as a param
Browse files Browse the repository at this point in the history
  • Loading branch information
sampocs committed Apr 20, 2023
1 parent 0e19367 commit a019426
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x/claim/keeper/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ func (k Keeper) CreateAirdropAndEpoch(ctx sdk.Context, msg types.MsgCreateAirdro
k.epochsKeeper.SetEpochInfo(ctx, epochstypes.EpochInfo{
Identifier: fmt.Sprintf("airdrop-%s", msg.Identifier),
StartTime: airdrop.AirdropStartTime.Add(time.Minute),
Duration: time.Hour * 24 * 30,
Duration: types.DefaultEpochDuration,
CurrentEpoch: 0,
CurrentEpochStartHeight: 0,
CurrentEpochStartTime: time.Time{},
Expand Down
1 change: 1 addition & 0 deletions x/claim/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

var (
DefaultClaimDenom = "ustrd"
DefaultEpochDuration = time.Hour * 24 * 30
DefaultAirdropDuration = time.Hour * 24 * 30 * 12 * 3 // 3 years
DefaultVestingDurationForDelegateStake = time.Hour * 24 * 30 * 3 // 3 months
DefaultVestingDurationForLiquidStake = time.Hour * 24 * 30 * 3 // 3 months
Expand Down

0 comments on commit a019426

Please sign in to comment.