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