[CL]: Add sqrtPrice check to swaps_test #3989
Labels
C:x/concentrated-liquidity
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Milestone
Background
#3874 (comment)
Suggested Design
See the CalcOutAmtGivenInInternal function here
osmosis/x/concentrated-liquidity/swaps_test.go
Line 510 in fa47daa
As well as the SwapOutAmtGivenIn function here
osmosis/x/concentrated-liquidity/swaps_test.go
Line 565 in fa47daa
We currently do not check the return value of the newSqrtPrice. We need to do the following:
Everything said above must also be applied TestCalcAndSwapInAmtGivenOut, CalcInAmtGivenOutInternal, and SwapInAmtGivenOut.
The values calculated for TestCalcAndSwapOutAmtGivenIn though should be the same for TestCalcAndSwapInAmtGivenOut, so should just be a copy and paste job after that.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: