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