Skip to content

Commit

Permalink
Delete printlns that made it to prod (#5835)
Browse files Browse the repository at this point in the history
* Delete printlns that made it to prod

* add changelog

(cherry picked from commit 37b9bbe)
  • Loading branch information
ValarDragon authored and mergify[bot] committed Jul 14, 2023
1 parent ca856c1 commit 5526f2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions x/concentrated-liquidity/swapstrategy/zero_for_one.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 5526f2b

Please sign in to comment.