From 5526f2bb79a9ae3a4b18c34d090f307cde1de6aa Mon Sep 17 00:00:00 2001 From: Dev Ojha Date: Fri, 14 Jul 2023 10:59:17 -0400 Subject: [PATCH] Delete printlns that made it to prod (#5835) * Delete printlns that made it to prod * add changelog (cherry picked from commit 37b9bbe00e26504d808f99d201e73a11d1757fc7) --- CHANGELOG.md | 1 + x/concentrated-liquidity/swapstrategy/zero_for_one.go | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b737bbc6f08..e1777d6906f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### BugFix * [#5831](https://github.com/osmosis-labs/osmosis/pull/5831) Fix superfluid_delegations query +* [#5835](https://github.com/osmosis-labs/osmosis/pull/5835) Fix println's for "amountZeroInRemainingBigDec before fee" making it into production ### Misc Improvements diff --git a/x/concentrated-liquidity/swapstrategy/zero_for_one.go b/x/concentrated-liquidity/swapstrategy/zero_for_one.go index d79630d9b4f..da71c0b4883 100644 --- a/x/concentrated-liquidity/swapstrategy/zero_for_one.go +++ b/x/concentrated-liquidity/swapstrategy/zero_for_one.go @@ -65,9 +65,6 @@ func (s zeroForOneStrategy) ComputeSwapWithinBucketOutGivenIn(sqrtPriceCurrent o // Estimate the amount of token zero needed until the target sqrt price is reached. amountZeroIn := math.CalcAmount0Delta(liquidityBigDec, sqrtPriceTargetBigDec, sqrtPriceCurrent, true) // N.B.: if this is false, causes infinite loop - fmt.Println("liquidity", liquidity) - fmt.Println("amountZeroInRemainingBigDec before fee", amountZeroInRemainingBigDec) - // Calculate sqrtPriceNext on the amount of token remaining after spread reward. amountZeroInRemainingLessSpreadReward := amountZeroInRemainingBigDec.Mul(oneBigDec.Sub(osmomath.BigDecFromSDKDec(s.spreadFactor)))