commit b7f8a16c8878fbc329324519fd3d70231499f801 parent ba791e6e317f4b9d566b0fb84a714f98d6c07199 Author: Javier Sepulveda <javier.sepulveda@uv.es> Date: Fri, 22 Sep 2023 12:59:10 +0200 Fix syntax error when pasting with nano editor Diffstat:
| M | sandcastle/utils/fund-rewards.sh | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sandcastle/utils/fund-rewards.sh b/sandcastle/utils/fund-rewards.sh @@ -41,7 +41,7 @@ ACTIVE_FUNDS=$(echo "$JSON" | jq '[.reserves[] | select(.active)]') # If there is ANY active reserve, then do the substraction if [[ $ACTIVE_FUNDS != "[]" ]]; then -TOTAL_EXCHANGE_INITIAL_AMOUNT=$(echo "$ACTIVE_FUNDS" | jq --arg cur "$CURRENCY" '[.[].exchange_initial_amount | sub($cur + ":"; "") | tonumber] |> +TOTAL_EXCHANGE_INITIAL_AMOUNT=$(echo "$ACTIVE_FUNDS" | jq --arg cur "$CURRENCY" '[.[].exchange_initial_amount | sub($cur + ":"; "") | tonumber] | add') TOTAL_PICKUP_AMOUNT=$(echo "$ACTIVE_FUNDS" | jq --arg cur "$CURRENCY" '[.[].pickup_amount | sub($cur + ":"; "") | tonumber] | add') TOTAL_RESERVE_AMOUNT=$((TOTAL_EXCHANGE_INITIAL_AMOUNT - TOTAL_PICKUP_AMOUNT)) else