Skip to content

Commit

Permalink
apply comment fixes from review
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Tucker <[email protected]>
  • Loading branch information
AlpinYukseloglu and czarcas7ic authored Mar 19, 2024
1 parent 6e8f5cf commit 89eac51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/concentrated-liquidity/incentives.go
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ func (k Keeper) redepositForfeitedIncentives(ctx sdk.Context, poolId uint64, sen

// Note that this logic is a simplified version of the regular incentive distribution logic.
// It leans on the fact that the tracked forfeited incentives are already scaled appropriately
// so we do not need to run any additional computations beyond diving by the active liquidity.
// so we do not need to run any additional computations beyond dividing by the active liquidity.
incentivesToAddToCurAccum := sdk.NewDecCoins()
for _, forfeitedCoin := range curUptimeForfeited {
// Calculate the amount to add to the accumulator by dividing the forfeited coin amount by the current uptime duration
Expand Down
2 changes: 1 addition & 1 deletion x/concentrated-liquidity/incentives_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,7 @@ func (s *KeeperTestSuite) checkForfeitedCoinsByUptime(totalForfeitedCoins sdk.Co

forfeitedCoins := sdk.NewCoins()
// Iterate through uptime indexes and add up the forfeited coins from each
// We unfortunately need to through each coin individually to properly scale down the amount
// We unfortunately need to iterate through each coin individually to properly scale down the amount
// (doing it in bulk leads to inconsistent rounding error)
for uptimeIndex := range types.SupportedUptimes {
for _, coin := range scaledForfeitedCoinsByUptime[uptimeIndex] {
Expand Down

0 comments on commit 89eac51

Please sign in to comment.