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