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