Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Apr 26, 2024
1 parent 0d7c4b8 commit 49802da
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions x/emissions/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,36 +32,28 @@ func DefaultParams() Params {

// Validate validates the set of params
func (p Params) Validate() error {
err := validateMaxBondFactor(p.MaxBondFactor)
if err != nil {
if err := validateMaxBondFactor(p.MaxBondFactor); err != nil {
return err
}
err = validateMinBondFactor(p.MinBondFactor)
if err != nil {
if err := validateMinBondFactor(p.MinBondFactor); err != nil {
return err
}
err = validateAvgBlockTime(p.AvgBlockTime)
if err != nil {
if err := validateAvgBlockTime(p.AvgBlockTime); err != nil {
return err
}
err = validateTargetBondRatio(p.TargetBondRatio)
if err != nil {
if err := validateTargetBondRatio(p.TargetBondRatio); err != nil {
return err
}
err = validateValidatorEmissionPercentage(p.ValidatorEmissionPercentage)
if err != nil {
if err := validateValidatorEmissionPercentage(p.ValidatorEmissionPercentage); err != nil {
return err
}
err = validateObserverEmissionPercentage(p.ObserverEmissionPercentage)
if err != nil {
if err := validateObserverEmissionPercentage(p.ObserverEmissionPercentage); err != nil {
return err
}
err = validateTssEmissionPercentage(p.TssSignerEmissionPercentage)
if err != nil {
if err := validateTssEmissionPercentage(p.TssSignerEmissionPercentage); err != nil {
return err
}
err = validateBallotMaturityBlocks(p.BallotMaturityBlocks)
if err != nil {
if err := validateBallotMaturityBlocks(p.BallotMaturityBlocks); err != nil {
return err
}
return validateObserverSlashAmount(p.ObserverSlashAmount)
Expand Down

0 comments on commit 49802da

Please sign in to comment.