The problem is probably
assets-bal=()
Variable names must not contain a dash. You are limited to underscores.
I don't know how `bash` interprets `assets-bal=()` but it considers that an incomplete command which has to be finished on another line. Just run that line in a shell to see what I mean.