Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: underflow
--> c0867e7605c91cdbe51de026552742040896384e97e9ed84746de197d2de2cc0:17:16
|
17 | } else {let f1 = fee * I1B2sqr / scale * I2B1sqr / scale - I2B1;let f2 = fee * I2 / scale + feefee*B2/scale;res = f1*scale/f2;}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^