Skip to content

Commit

Permalink
chore: rename oracle split setter/getter
Browse files Browse the repository at this point in the history
  • Loading branch information
fragwuerdig committed Jun 27, 2024
1 parent a7fe37f commit 25ecbca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/upgrades/v8_1/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func CreateV81UpgradeHandler(
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
// set default oracle split
mm.Modules[treasurytypes.ModuleName].(*treasurykeeper.Keeper).SetOracleSplit(ctx, treasurytypes.DefaultOracleSplit)
mm.Modules[treasurytypes.ModuleName].(*treasurykeeper.Keeper).SetOracleSplitRate(ctx, treasurytypes.DefaultOracleSplit)
return mm.RunMigrations(ctx, cfg, fromVM)
}
}
2 changes: 1 addition & 1 deletion custom/auth/ante/expected_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type TreasuryKeeper interface {
HasBurnTaxExemptionAddress(ctx sdk.Context, addresses ...string) bool
HasBurnTaxExemptionContract(ctx sdk.Context, address string) bool
GetMinInitialDepositRatio(ctx sdk.Context) sdk.Dec
GetOracleSplit(ctx sdk.Context) sdk.Dec
GetOracleSplitRate(ctx sdk.Context) sdk.Dec
}

// OracleKeeper for feeder validation
Expand Down
2 changes: 1 addition & 1 deletion custom/auth/ante/fee_burntax.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// BurnTaxSplit splits
func (fd FeeDecorator) BurnTaxSplit(ctx sdk.Context, taxes sdk.Coins) (err error) {
burnSplitRate := fd.treasuryKeeper.GetBurnSplitRate(ctx)
oracleSplitRate := fd.treasuryKeeper.GetOracleSplit(ctx)
oracleSplitRate := fd.treasuryKeeper.GetOracleSplitRate(ctx)
distributionDeltaCoins := sdk.NewCoins()
oracleSplitCoins := sdk.NewCoins()

Expand Down
4 changes: 2 additions & 2 deletions x/treasury/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ func (k Keeper) SetMinInitialDepositRatio(ctx sdk.Context, minInitialDepositRati
k.paramSpace.Set(ctx, types.KeyMinInitialDepositRatio, minInitialDepositRatio)
}

func (k Keeper) GetOracleSplit(ctx sdk.Context) (res sdk.Dec) {
func (k Keeper) GetOracleSplitRate(ctx sdk.Context) (res sdk.Dec) {
k.paramSpace.Get(ctx, types.KeyOracleSplit, &res)
return
}

func (k Keeper) SetOracleSplit(ctx sdk.Context, oracleSplit sdk.Dec) {
func (k Keeper) SetOracleSplitRate(ctx sdk.Context, oracleSplit sdk.Dec) {
k.paramSpace.Set(ctx, types.KeyOracleSplit, oracleSplit)
}

Expand Down

0 comments on commit 25ecbca

Please sign in to comment.