Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 10856a3ac44832f08661a1de04a871061b2f8408243b6640c9a2d724e7ad0eed:17:8
|
17 | tryBI(tokenInVault: flowTokenVault)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: underflow
--> 10856a3ac44832f08661a1de04a871061b2f8408243b6640c9a2d724e7ad0eed:29:24
|
29 | let total: UFix64 = SwapConfig.ScaledUInt256ToUFix64(res) - 0.2
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^