(CL Test): Inverse relationship between swaps #4065
Labels
C:x/concentrated-liquidity
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
This issue is a part of invariant testing.
Upon doing swaps in a concentrated liquidity pool, we want to make sure that we get preserved the same amount when we do a swap from denom1 -> denom2 and the back from denom2 -> denom1 using the amount out in the first swap.
This testing should be done for both
SwapOutGivenIn
andSwapInGivenOut
.We should be abstracting the testing vectors used in existing test cases to remove code duplication upon testing the same things as done in #4057
We do not expect them to be exactly equal due to roundings and swap fees, but expect them to be within the expected margin of error
The text was updated successfully, but these errors were encountered: