CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed:
error: cannot apply binary operation * to types: `Int256`, `UFix64`
--> e5ccdbb0f41aa4b43988fe3bb863b415e11c2900902488a1d9fd7b991a258c27:21:27
|
21 | let used_percentage = (used_dec * 100.00)
| ^^^^^^^^^^^^^^^^^
error: cannot apply binary operation - to types: `Int`, `Int256`
--> e5ccdbb0f41aa4b43988fe3bb863b415e11c2900902488a1d9fd7b991a258c27:22:32
|
22 | let percentage_available = (100 ... age)
| ^^^^^^^^^^^^^^^^^^^^^
error: mismatched types
--> e5ccdbb0f41aa4b43988fe3bb863b415e11c2900902488a1d9fd7b991a258c27:23:11
|
23 | return percentage_available
| ^^^^^^^^^^^^^^^^^^^^ expected `UFix64`, got `Int`
error: cannot apply binary operation < to types: `UFix64`, `Int256`
--> e5ccdbb0f41aa4b43988fe3bb863b415e11c2900902488a1d9fd7b991a258c27:29:6
|
29 | if (storage_per < Int256(10)) {
| ^^^^^^^^^^^^^^^^^^^^^^