Skip to content

Commit

Permalink
fix(v1beta3): allow non-zero take rate for uakt (#70)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Aug 8, 2023
1 parent 9f6946b commit 0a86b69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/node/take/v1beta3/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ func validateDenomTakeRates(i interface{}) error {
}
}

// must have uakt=0
if rate, exists := check["uakt"]; !exists || rate != 0 {
return fmt.Errorf("invalid Denom Take Rate - uakt must be 0")
// uakt must always be present
if _, exists := check["uakt"]; !exists {
return fmt.Errorf("invalid Denom Take Rate - uakt must be present")
}

return nil
Expand Down

0 comments on commit 0a86b69

Please sign in to comment.