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