diff options
author | Javier Sepulveda <javier.sepulveda@uv.es> | 2023-09-22 12:59:10 +0200 |
---|---|---|
committer | Javier Sepulveda <javier.sepulveda@uv.es> | 2023-09-22 12:59:10 +0200 |
commit | b7f8a16c8878fbc329324519fd3d70231499f801 (patch) | |
tree | e9326a6461095dea718e95a2aefe41d4a44351bf | |
parent | ba791e6e317f4b9d566b0fb84a714f98d6c07199 (diff) | |
download | deployment-b7f8a16c8878fbc329324519fd3d70231499f801.tar.gz deployment-b7f8a16c8878fbc329324519fd3d70231499f801.tar.bz2 deployment-b7f8a16c8878fbc329324519fd3d70231499f801.zip |
Fix syntax error when pasting with nano editor
-rwxr-xr-x | sandcastle/utils/fund-rewards.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandcastle/utils/fund-rewards.sh b/sandcastle/utils/fund-rewards.sh index d53bd99..6f76a39 100755 --- 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 |