sora2-network
sora2-network copied to clipboard
[Bug]: Swap with XYK and TBC pool don't work
Preconditions
- Setup XYK and TBC pool for TBCD with the same price
Steps to reproduce
- Perform swap TBCD-XOR without filters
Actual behavior
Swap fails with poolXYK.CalculatedValueIsOutOfDesiredBounds
Expected behavior
Swap successfull
Environment
{"label"=>"Production"}
Operating System
No response
Additional context
Swap should split to 2 parts by smart split to reproduce this bug. In this case buyback performed by TBC pool changes price of TBCD and second part of the swap (which is usually XYK pool) fails with slippage error