Skip to content

Commit

Permalink
chore: remove outdated TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hallazzang committed Nov 3, 2021
1 parent 47adc3f commit 226a55d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion x/farming/keeper/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ func (k Keeper) WithdrawRewards(ctx sdk.Context, farmerAcc sdk.AccAddress, staki
}

currentEpoch := k.GetCurrentEpoch(ctx, stakingCoinDenom)
// TODO: handle if currentEpoch is 0
rewards := k.CalculateRewards(ctx, farmerAcc, stakingCoinDenom, currentEpoch-1)
truncatedRewards, _ := rewards.TruncateDecimal()

Expand Down

0 comments on commit 226a55d

Please sign in to comment.