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