From 330866a5042ed74b065a1d68d678c360deb20d0e Mon Sep 17 00:00:00 2001
From: Julien Delaigues <0xju@pm.me>
Date: Tue, 2 Apr 2024 10:36:10 +0800
Subject: [PATCH 5/6] feat: track wallet's address when staking, unstaking,
claming reward
---
.../components/staking_section/claim_rewards_modal.tsx | 5 ++++-
.../staking/components/staking_section/staking_modal.tsx | 1 +
.../staking/components/staking_section/unstaking_modal.tsx | 6 +++++-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/screens/staking/components/staking_section/claim_rewards_modal.tsx b/src/screens/staking/components/staking_section/claim_rewards_modal.tsx
index 77255c80..792ab69d 100644
--- a/src/screens/staking/components/staking_section/claim_rewards_modal.tsx
+++ b/src/screens/staking/components/staking_section/claim_rewards_modal.tsx
@@ -121,7 +121,10 @@ const ClaimRewardsModal = () => {
stakingRef.current.postHog?.capture(
PostHogCustomEvent.ClaimedRewards,
- claimableRewardsForNetwork,
+ {
+ ...claimableRewardsForNetwork,
+ walletAddress: selectedAccount.address,
+ },
);
toastSuccess({
diff --git a/src/screens/staking/components/staking_section/staking_modal.tsx b/src/screens/staking/components/staking_section/staking_modal.tsx
index 4aef207a..5afe6741 100644
--- a/src/screens/staking/components/staking_section/staking_modal.tsx
+++ b/src/screens/staking/components/staking_section/staking_modal.tsx
@@ -151,6 +151,7 @@ const StakingModal = () => {
stakingRef.current.postHog?.capture(PostHogCustomEvent.StakedTokens, {
amount,
denom: mainNetworkDenom[selectedAccount.networkId],
+ walletAddress: selectedAccount.address,
});
toastSuccess({
diff --git a/src/screens/staking/components/staking_section/unstaking_modal.tsx b/src/screens/staking/components/staking_section/unstaking_modal.tsx
index 6b6fd3b9..bda5ad37 100644
--- a/src/screens/staking/components/staking_section/unstaking_modal.tsx
+++ b/src/screens/staking/components/staking_section/unstaking_modal.tsx
@@ -152,7 +152,11 @@ const UnstakingModal = () => {
stakingRef.current.postHog?.capture(
PostHogCustomEvent.UnstakedTokens,
- { amount, denom: mainNetworkDenom[selectedAccount.networkId] },
+ {
+ amount,
+ denom: mainNetworkDenom[selectedAccount.networkId],
+ walletAddress: selectedAccount.address,
+ },
);
toastSuccess({
From 6330ba670005b627a715f8d4d4e2d5c5cb98cc6e Mon Sep 17 00:00:00 2001
From: Julien Delaigues <0xju@pm.me>
Date: Tue, 2 Apr 2024 17:55:10 +0800
Subject: [PATCH 6/6] chore: update terms of services and private policy
---
public/locales/en/policy.json | 2 +-
public/locales/en/terms_and_conditions.json | 2 +-
public/locales/zh-CN/policy.json | 2 +-
.../locales/zh-CN/terms_and_conditions.json | 2 +-
public/locales/zh-HK/policy.json | 2 +-
.../locales/zh-HK/terms_and_conditions.json | 2 +-
src/screens/policy/index.tsx | 70 +++++++++++++++++++
src/screens/terms_and_conditions/index.tsx | 12 ++++
8 files changed, 88 insertions(+), 6 deletions(-)
diff --git a/public/locales/en/policy.json b/public/locales/en/policy.json
index 0ee608b5..e9dd9e73 100644
--- a/public/locales/en/policy.json
+++ b/public/locales/en/policy.json
@@ -3,5 +3,5 @@
"description1": "<0>This policy describes the privacy practices of Forbole Technology Limited (“<1>Forbole1>”, “we” or “us”) with respect to the Forbole website located at <2>https://forbole.com2> and related content, applications, features, and functionality (collectively, the “<1>Platform1>”) and the various services that we offer to you on or through the Platform (the “<1>Services1>”). Users of our Services are referred to as “<1>users1>” or “you”.0>",
"description2": "Please read this policy and the Forbole Terms of Use carefully before engaging with the Platform or using the Services.",
"title": "Forbole Privacy Policy",
- "updatedDate": "Last updated: 19 July 2023"
+ "updatedDate": "Last updated: 14 March 2024"
}
diff --git a/public/locales/en/terms_and_conditions.json b/public/locales/en/terms_and_conditions.json
index 96335ed4..11324389 100644
--- a/public/locales/en/terms_and_conditions.json
+++ b/public/locales/en/terms_and_conditions.json
@@ -1,5 +1,5 @@
{
"desc": " ",
"title": "Forbole Terms of Use",
- "updatedDate": "Last updated: 19 July 2023"
+ "updatedDate": "Last updated: 14 March 2024"
}
diff --git a/public/locales/zh-CN/policy.json b/public/locales/zh-CN/policy.json
index 9fbd807f..42d3a6b8 100644
--- a/public/locales/zh-CN/policy.json
+++ b/public/locales/zh-CN/policy.json
@@ -3,5 +3,5 @@
"description1": "<0>This policy describes the privacy practices of Forbole Technology Limited (“<1>Forbole1>”, “we” or “us”) with respect to the Forbole website located at <2>https://forbole.com2> and related content, applications, features, and functionality (collectively, the “<1>Platform1>”) and the various services that we offer to you on or through the Platform (the “<1>Services1>”). Users of our Services are referred to as “<1>users1>” or “you”.0>",
"description2": "在参与平台或使用服务之前,请仔细阅读本政策和 Forbole 使用条款。",
"title": "Forbole 私隐政策",
- "updatedDate": "最后更新日期:2023 年 7 月 19 日"
+ "updatedDate": "最后更新日期:2024 年 3 月 14 日"
}
diff --git a/public/locales/zh-CN/terms_and_conditions.json b/public/locales/zh-CN/terms_and_conditions.json
index d8c01e74..3c7d7338 100644
--- a/public/locales/zh-CN/terms_and_conditions.json
+++ b/public/locales/zh-CN/terms_and_conditions.json
@@ -1,5 +1,5 @@
{
"desc": "条款及细则,请以英文版本为准。",
"title": "Forbole 条款及细则",
- "updatedDate": "最后更新日期:2023 年 7 月 19 日"
+ "updatedDate": "最后更新日期:2024 年 3 月 14 日"
}
diff --git a/public/locales/zh-HK/policy.json b/public/locales/zh-HK/policy.json
index 8fccc332..dff299ff 100644
--- a/public/locales/zh-HK/policy.json
+++ b/public/locales/zh-HK/policy.json
@@ -3,5 +3,5 @@
"description1": "<0>This policy describes the privacy practices of Forbole Technology Limited (“<1>Forbole1>”, “we” or “us”) with respect to the Forbole website located at <2>https://forbole.com2> and related content, applications, features, and functionality (collectively, the “<1>Platform1>”) and the various services that we offer to you on or through the Platform (the “<1>Services1>”). Users of our Services are referred to as “<1>users1>” or “you”.0>",
"description2": "在參與平台或使用服務之前,請仔細閱讀本政策和 Forbole 使用條款。",
"title": "Forbole 私隱政策",
- "updatedDate": "最後更新日期:2023 年 7 月 19 日"
+ "updatedDate": "最後更新日期:2024 年 3 月 14 日"
}
diff --git a/public/locales/zh-HK/terms_and_conditions.json b/public/locales/zh-HK/terms_and_conditions.json
index cef53deb..290ad429 100644
--- a/public/locales/zh-HK/terms_and_conditions.json
+++ b/public/locales/zh-HK/terms_and_conditions.json
@@ -1,5 +1,5 @@
{
"desc": "條款及細則,請以英文版本為準。",
"title": "Forbole 條款及細則",
- "updatedDate": "最後更新日期:2023 年 7 月 19 日"
+ "updatedDate": "最後更新日期:2024 年 3 月 14 日"
}
diff --git a/src/screens/policy/index.tsx b/src/screens/policy/index.tsx
index 4d3ba15a..7516c61e 100644
--- a/src/screens/policy/index.tsx
+++ b/src/screens/policy/index.tsx
@@ -528,6 +528,76 @@ const Policy = () => {
or similar technologies.
+
+
+ (iv) anonymized identifiers. We
+ also may use Posthog and Sentry to help us better understand
+ the usage and error data in order to improve our user
+ experience. Please refer to each service provider’s Terms of
+ Use and Privacy Policy for more information:
+
+
+
+
+
+
diff --git a/src/screens/terms_and_conditions/index.tsx b/src/screens/terms_and_conditions/index.tsx
index 36e12dff..efb63440 100644
--- a/src/screens/terms_and_conditions/index.tsx
+++ b/src/screens/terms_and_conditions/index.tsx
@@ -267,6 +267,18 @@ const TermsAndConditions = () => {
will subsist now or in the future in any part of the world.
+
+ 2.8We've integrated{" "}
+ Posthog, a third-party
+ analytics and behavioral tracking tool, into our platform to
+ gain insights into user interactions and behaviors. This
+ enables us to continually enhance and optimize our services,
+ ensuring an improved user experience for you. By accepting our
+ Terms of Service, you're also agreeing to the{" "}
+ Terms of Service
+ of Posthog.
+
+
3.
Disclaimers