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