Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: underflow
--> db86866d56b09aa48cb6262f8f5872ba312f9df9b0d3e062bbfd414840c7211c:16:8
|
16 | let total: UFix64 = SwapConfig.ScaledUInt256ToUFix64(res) - 0.2
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^