Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Jun 19, 2023
1 parent bb881e1 commit 398380e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/concentrated-liquidity/swaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ func (k Keeper) computeOutAmtGivenIn(
return sdk.Coin{}, sdk.Coin{}, 0, sdk.Dec{}, sdk.Dec{}, sdk.Dec{}, err
}

// // TEMPORARY HACK: this is to fix tick rounding error where
// // the tick is off by 1 due to banker's rounding error in CalculatePriceToTick
// // TODO: if this is to remain in the codebase, consider abstracting this into a
// // method of swap strategy.
// TEMPORARY HACK: this is to fix tick rounding error where
// the tick is off by 1 due to banker's rounding error in CalculatePriceToTick
// TODO: if this is to remain in the codebase, consider abstracting this into a
// method of swap strategy.
isZeroForOne := getZeroForOne(tokenInMin.Denom, p.GetToken0())
if isZeroForOne {
if newTick <= swapState.tick {
Expand Down

0 comments on commit 398380e

Please sign in to comment.