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