From 90fed3a5a6e44b5f8d51e145f3b03104560ce5e6 Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Tue, 2 Apr 2024 20:15:23 +0200 Subject: [PATCH] Update ToS message and ToS version deployment --- README.md | 13 +++++++++++++ terms_of_service/acceptance_message.py | 6 ++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 607e555..34040c3 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,19 @@ scripts/set-terms-of-service.sh - Run `python scripts/update.py` to change on-chain state and get a new hash - Update `lib/assets/tos/tos-map.js` +Example: + +```shell +# TOS version will be automatically picked from the smart contract +poetry shell +export TOS_DATE=2024-03-20 +export CONTRACT_ADDRESS=0xbe1418df0bAd87577de1A41385F19c6e77312780 +export JSON_RPC_POLYGON= +export DEPLOY_PRIVATE_KEY= +python scripts/update.py + +``` + ## Deployment A deployment can be found on Polygon [0xbe1418df0bAd87577de1A41385F19c6e77312780](https://polygonscan.com/address/0xbe1418df0bAd87577de1A41385F19c6e77312780). diff --git a/terms_of_service/acceptance_message.py b/terms_of_service/acceptance_message.py index 0b7f12f..d7ab039 100644 --- a/terms_of_service/acceptance_message.py +++ b/terms_of_service/acceptance_message.py @@ -30,11 +30,9 @@ TRADING_STRATEGY_ACCEPTANCE_MESSAGE = """ -I read and agree on Terms of Service to access the -smart contract software deployed on a blockchain. +I agree on Terms of Service. I understand smart contract trading is risky and I may lose all of my deposits. -The Terms of Service version {version}, dated {date}, was published at -https://tradingstrategy.ai/tos/{date}.txt +This Terms of Service version {version}, dated {date}, was published at https://tradingstrategy.ai/tos/{date}.txt """.strip()