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`
--> 9a257a44d1d471822afba1c74bb49840aca6acc00c37a428e1f4f4b37e77fb8c:21:27
|
21 | let used_percentage = (used_dec * 100.00)
| ^^^^^^^^^^^^^^^^^
error: cannot apply binary operation - to types: `Int`, `Int256`
--> 9a257a44d1d471822afba1c74bb49840aca6acc00c37a428e1f4f4b37e77fb8c:22:32
|
22 | let percentage_available = (100 ... age)
| ^^^^^^^^^^^^^^^^^^^^^
error: mismatched types
--> 9a257a44d1d471822afba1c74bb49840aca6acc00c37a428e1f4f4b37e77fb8c:23:11
|
23 | return percentage_available
| ^^^^^^^^^^^^^^^^^^^^ expected `UFix64`, got `Int`
error: cannot apply binary operation < to types: `UFix64`, `Int256`
--> 9a257a44d1d471822afba1c74bb49840aca6acc00c37a428e1f4f4b37e77fb8c:29:6
|
29 | if (storage_per < Int256(10)) {
| ^^^^^^^^^^^^^^^^^^^^^^