v2-periphery icon indicating copy to clipboard operation
v2-periphery copied to clipboard

as to computeProfitMaximizingTrade method in ExampleSwapToPrice

Open seaify opened this issue 3 years ago • 1 comments

    amountIn = leftSide.sub(rightSide);

as to this, it might throw exception, does it mean the calc function might be wrong?

VM Exception while processing transaction: revert ds-math-sub-underflow

seaify avatar May 28 '21 08:05 seaify

Hello, I have the same problem. Did you manage to find a resolution?

Samboy76 avatar Oct 29 '22 07:10 Samboy76