Skip to content

Commit

Permalink
do not allow raffle join in last 1 hour of raffle
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan.balea committed Sep 10, 2024
1 parent 54746ba commit ac0738c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/burner/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (k msgServer) JoinRaffle(goCtx context.Context, msg *types.MsgJoinRaffle) (
}

//do not allow participants to join close to expiration
if raffle.EndAt <= (k.GetRaffleCurrentEpoch(ctx) - (raffleDelayHeight + 1)) {
if raffle.EndAt <= (k.GetRaffleCurrentEpoch(ctx) - 1) {
return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "raffle has expired")
}

Expand Down

0 comments on commit ac0738c

Please sign in to comment.