Skip to content

Commit

Permalink
Merge pull request #47 from terra-money/feat/reduce/comissions
Browse files Browse the repository at this point in the history
feat: reduce comssions to 10%
  • Loading branch information
javiersuweijie authored Aug 8, 2023
2 parents c0a0eb7 + 63efedc commit 93fe9c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/provider/alliance/alliance_validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func NewAllianceValidatorsProvider(config *config.AllianceConfig, providerManage
// the following rules:
// (1) - be part of the active validator set,
// (2) - to do not be jailed,
// (3) - commission rate to be lower than 19%,
// (3) - commission rate to be lower than 10%,
// (4) - Participate in the latest 3 gov proposals,
// (5) - have been in the active validator set 100 000 blocks before the current one, (1 week approx)
func (p *allianceValidatorsProvider) GetAllianceRedelegateReq(ctx context.Context) (*pkgtypes.MsgAllianceRedelegate, error) {
Expand Down Expand Up @@ -121,8 +121,8 @@ func (p *allianceValidatorsProvider) GetAllianceRedelegateReq(ctx context.Contex
continue
}

// (3) skip if commission is grater than 19%
if val.Commission.CommissionRates.Rate.GT(sdktypes.MustNewDecFromStr("0.19")) {
// (3) skip if commission is grater than 10%
if val.Commission.CommissionRates.Rate.GT(sdktypes.MustNewDecFromStr("0.10")) {
continue
}

Expand Down

0 comments on commit 93fe9c6

Please sign in to comment.