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