|
77 | 77 | directory="trader" |
78 | 78 | # This is a tested version that works well. |
79 | 79 | # Feel free to replace this with a different version of the repo, but be careful as there might be breaking changes |
80 | | -service_version="v0.4.0" |
| 80 | +service_version="v0.4.1" |
81 | 81 | service_repo=https://github.com/valory-xyz/$directory.git |
82 | 82 | if [ -d $directory ] |
83 | 83 | then |
|
142 | 142 | agent_balance=0 |
143 | 143 | operator_balance=0 |
144 | 144 | suggested_amount=50000000000000000 |
145 | | - until [[ $agent_balance -gt $suggested_amount-1 && $operator_balance -gt $suggested_amount-1 ]] |
| 145 | + until [[ $(python -c "print($agent_balance > ($suggested_amount-1))") == "True" && $(python -c "print($operator_balance > ($suggested_amount-1))") == "True" ]]; |
146 | 146 | do |
147 | 147 | echo "Agent instance's balance: $agent_balance WEI." |
148 | 148 | echo "Operator's balance: $operator_balance WEI." |
@@ -262,7 +262,7 @@ convert_hex_to_decimal() { |
262 | 262 | suggested_amount=500000000000000000 |
263 | 263 | safe_balance_hex=$(get_balance) |
264 | 264 | safe_balance=$(convert_hex_to_decimal $safe_balance_hex) |
265 | | -while (( $safe_balance < $suggested_amount )); do |
| 265 | +while [ "$(python -c "print($safe_balance < $suggested_amount)")" == "True" ]; do |
266 | 266 | echo "Safe's balance: $safe_balance WEI." |
267 | 267 | echo "The safe address needs to be funded." |
268 | 268 | echo "Please fund it with the amount you want to use for trading (at least 0.5 xDAI) to continue." |
@@ -321,4 +321,4 @@ poetry run autonomy deploy build --n $n_agents -ltm |
321 | 321 | cd .. |
322 | 322 |
|
323 | 323 | # Run the deployment |
324 | | -poetry run autonomy deploy run --build-dir $directory |
| 324 | +poetry run autonomy deploy run --build-dir $directory --detach |
0 commit comments