Skip to content

Commit

Permalink
remove redundant conditonal logic
Browse files Browse the repository at this point in the history
  • Loading branch information
taramakage committed Oct 11, 2023
1 parent 9304e04 commit de46200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/farm/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func ValidateGenesis(data GenesisState) error {
continue
}
// The pool is expired and the reward is refund to the creator
if !r.RemainingReward.Equal(r.TotalReward) && pool.EndHeight == pool.LastHeightDistrRewards {
if pool.EndHeight == pool.LastHeightDistrRewards {
continue
}

Expand Down

0 comments on commit de46200

Please sign in to comment.