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