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