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