Skip to content

Commit

Permalink
Update x/alliance/keeper/msg_server.go
Browse files Browse the repository at this point in the history
Co-authored-by: emidev98 <[email protected]>
  • Loading branch information
javiersuweijie and emidev98 authored Feb 19, 2024
1 parent 4ab361f commit a75fd02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/alliance/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (m MsgServer) CreateAlliance(ctx context.Context, msg *types.MsgCreateAllia
}

if msg.TakeRate.IsNil() || msg.TakeRate.IsNegative() || msg.TakeRate.GTE(math.LegacyOneDec()) {
return nil, status.Errorf(codes.InvalidArgument, "Alliance takeRate must be more or equals to 0 but strictly less than 1")
return nil, status.Errorf(codes.InvalidArgument, "Alliance takeRate must be 0 or greater but strictly less than 1")
}

if msg.RewardChangeRate.IsZero() || msg.RewardChangeRate.IsNegative() {
Expand Down

0 comments on commit a75fd02

Please sign in to comment.