From 142ad297f0d9e6854bfb54bf8e92fdfa1dcb24b3 Mon Sep 17 00:00:00 2001 From: Adamantios Date: Mon, 4 Mar 2024 15:12:13 +0200 Subject: [PATCH 1/4] chore: remove the bet threshold's override Using the default one, which is set to 10 cents. --- run_service.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/run_service.sh b/run_service.sh index 7b8d119..13fc89f 100755 --- a/run_service.sh +++ b/run_service.sh @@ -1055,7 +1055,6 @@ export ON_CHAIN_SERVICE_ID=$service_id export ALL_PARTICIPANTS='["'$agent_address'"]' # This is the default market creator. Feel free to update with other market creators export OMEN_CREATORS='["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]' -export BET_THRESHOLD=5000000000000000 export TRADING_STRATEGY=kelly_criterion export PROMPT_TEMPLATE="Please take over the role of a Data Scientist to evaluate the given question. With the given question \"@{question}\" and the \`yes\` option represented by \`@{yes}\` and the \`no\` option represented by \`@{no}\`, what are the respective probabilities of \`p_yes\` and \`p_no\` occurring?" export IRRELEVANT_TOOLS='["claude-prediction-online", "openai-gpt-3.5-turbo-instruct", "prediction-online-summarized-info", "prediction-online-sum-url-content", "prediction-online", "openai-text-davinci-002", "openai-text-davinci-003", "openai-gpt-3.5-turbo", "openai-gpt-4", "stabilityai-stable-diffusion-v1-5", "stabilityai-stable-diffusion-xl-beta-v2-2-2", "stabilityai-stable-diffusion-512-v2-1", "stabilityai-stable-diffusion-768-v2-1", "deepmind-optimization-strong", "deepmind-optimization", "claude-prediction-offline", "prediction-offline", "prediction-offline-sme"]' From 1e7da2048edac8a200a4bc508f173c5f352a3877 Mon Sep 17 00:00:00 2001 From: Adamantios Date: Mon, 4 Mar 2024 15:12:57 +0200 Subject: [PATCH 2/4] chore: bump trader version --- run_service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_service.sh b/run_service.sh index 13fc89f..8eb2f7d 100755 --- a/run_service.sh +++ b/run_service.sh @@ -581,7 +581,7 @@ directory="trader" service_repo=https://github.com/$org_name/$directory.git # This is a tested version that works well. # Feel free to replace this with a different version of the repo, but be careful as there might be breaking changes -service_version="v0.12.7" +service_version="v0.12.8" # Define constants for on-chain interaction gnosis_chain_id=100 From 3954213df26831c06806ecdde9ac5295c3715dcf Mon Sep 17 00:00:00 2001 From: Adamantios Date: Mon, 4 Mar 2024 17:04:59 +0200 Subject: [PATCH 3/4] chore: explicitly set the bet threshold https://github.com/valory-xyz/trader-quickstart/pull/244#discussion_r1511295358 --- run_service.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run_service.sh b/run_service.sh index 8eb2f7d..f426b5f 100755 --- a/run_service.sh +++ b/run_service.sh @@ -1055,6 +1055,8 @@ export ON_CHAIN_SERVICE_ID=$service_id export ALL_PARTICIPANTS='["'$agent_address'"]' # This is the default market creator. Feel free to update with other market creators export OMEN_CREATORS='["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]' +# 10 cents minimum bet amount. Also, the bet will not be placed if expected returns - bet_threshold <= 0 +export BET_THRESHOLD=100000000000000000 export TRADING_STRATEGY=kelly_criterion export PROMPT_TEMPLATE="Please take over the role of a Data Scientist to evaluate the given question. With the given question \"@{question}\" and the \`yes\` option represented by \`@{yes}\` and the \`no\` option represented by \`@{no}\`, what are the respective probabilities of \`p_yes\` and \`p_no\` occurring?" export IRRELEVANT_TOOLS='["claude-prediction-online", "openai-gpt-3.5-turbo-instruct", "prediction-online-summarized-info", "prediction-online-sum-url-content", "prediction-online", "openai-text-davinci-002", "openai-text-davinci-003", "openai-gpt-3.5-turbo", "openai-gpt-4", "stabilityai-stable-diffusion-v1-5", "stabilityai-stable-diffusion-xl-beta-v2-2-2", "stabilityai-stable-diffusion-512-v2-1", "stabilityai-stable-diffusion-768-v2-1", "deepmind-optimization-strong", "deepmind-optimization", "claude-prediction-offline", "prediction-offline", "prediction-offline-sme"]' From d7538ac10ab92db94c17ad63cee7044544995932 Mon Sep 17 00:00:00 2001 From: jmoreira-valory Date: Tue, 5 Mar 2024 17:42:06 +0100 Subject: [PATCH 4/4] fix: collect correct service id --- run_service.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run_service.sh b/run_service.sh index f426b5f..7065602 100755 --- a/run_service.sh +++ b/run_service.sh @@ -780,8 +780,7 @@ echo "-----------------------------------------" AGENT_ID=14 dotenv_set_key "../$env_file_path" "AGENT_ID" "$AGENT_ID" -if [ -z ${service_id+x} ]; -then +if [ -z ${service_id+x} ]; then # Check balances suggested_amount=$suggested_top_up_default ensure_minimum_balance "$operator_address" $suggested_amount "owner/operator's address" @@ -811,7 +810,6 @@ then cmd+=" -c $cost_of_bonding" fi service_id=$(eval $cmd) - ensure_rpc_reports_service_state $service_id "PRE_REGISTRATION" # parse only the id from the response service_id="${service_id##*: }" # validate id @@ -821,6 +819,7 @@ then exit 1 fi + ensure_rpc_reports_service_state $service_id "PRE_REGISTRATION" echo -n "$service_id" > "../$service_id_path" fi