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