Skip to content

Commit

Permalink
chore: rename CalculateDistributeProfits fn to CalculateAndDistribute…
Browse files Browse the repository at this point in the history
…Profits
  • Loading branch information
PaddyMc committed Apr 19, 2024
1 parent edf6da8 commit e043b86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/protorev/keeper/epoch_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (h EpochHooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epoch
switch epochIdentifier {
case "day":
// Calculate and distribute protorev profits
err := h.CalculateDistributeProfits(ctx)
err := h.CalculateAndDistributeProfits(ctx)
if err != nil {
return err
}
Expand All @@ -60,8 +60,8 @@ func (h EpochHooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epoch
return nil
}

// CalculateDistributeProfits is executed after epoch. It gets the current base denom profits and distributes them.
func (h EpochHooks) CalculateDistributeProfits(ctx sdk.Context) error {
// CalculateAndDistributeProfits is executed after epoch. It gets the current base denom profits and distributes them.
func (h EpochHooks) CalculateAndDistributeProfits(ctx sdk.Context) error {
// Get the current arb profits (only in base denoms to prevent spam vector)
profit, err := h.k.CurrentBaseDenomProfits(ctx)
if err != nil {
Expand Down

0 comments on commit e043b86

Please sign in to comment.