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