sora2-network icon indicating copy to clipboard operation
sora2-network copied to clipboard

[Bug]: Swap with XYK and TBC pool don't work

Open vovac12 opened this issue 9 months ago • 0 comments

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

vovac12 avatar May 06 '24 06:05 vovac12