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