Skip to content

Commit

Permalink
Update mana.go
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviasaa authored Oct 19, 2023
1 parent 84a903f commit 4f21ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mana.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (r RewardsParameters) TargetReward(index EpochIndex, api API) (Mana, error)
return Mana(api.ComputedFinalReward()), nil
}

decayedInitialReward, err := api.ManaDecayProvider().RewardsWithDecay(Mana(api.ComputedInitialReward()), 0, index)
decayedInitialReward, err := api.ManaDecayProvider().RewardsWithDecay(Mana(api.ComputedInitialReward()), 1, index)
if err != nil {
return 0, ierrors.Errorf("failed to calculate decayed initial reward: %w", err)
}
Expand Down

0 comments on commit 4f21ded

Please sign in to comment.