Skip to content

Commit

Permalink
take into account multiple slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
hard-nett committed Dec 18, 2024
1 parent 6362e9f commit a12ce60
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions app/test_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ func Setup(t *testing.T) *BitsongApp {
type EmptyAppOptions struct{}

// Get implements AppOptions
func (ao EmptyAppOptions) Get(o string) interface{} {
return nil
}
func (ao EmptyAppOptions) Get(o string) interface{} { return nil }

func setup(t *testing.T, withGenesis bool, opts ...wasmkeeper.Option) (*BitsongApp, GenesisState) {
db := dbm.NewMemDB()
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v020/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func customCalculateDelegationRewards(ctx sdk.Context, k *keepers.AppKeepers, va
currentStake := val.TokensFromShares(del.GetShares())

if stake.GT(currentStake) {
marginOfErr := currentStake.Mul(sdk.NewDecWithPrec(12, 3)) // 1.2%
marginOfErr := currentStake.Mul(sdk.NewDecWithPrec(50, 3)) // 5.0%
if stake.LTE(currentStake.Add(marginOfErr)) {
stake = currentStake
} else {
Expand Down
1 change: 0 additions & 1 deletion app/upgrades/v020/validators.go

This file was deleted.

0 comments on commit a12ce60

Please sign in to comment.