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