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