Skip to content

Commit

Permalink
feat: track wallet's address when staking, unstaking, claming reward
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7u committed Apr 2, 2024
1 parent e4f0fff commit 330866a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ const ClaimRewardsModal = () => {

stakingRef.current.postHog?.capture(
PostHogCustomEvent.ClaimedRewards,
claimableRewardsForNetwork,
{
...claimableRewardsForNetwork,
walletAddress: selectedAccount.address,
},
);

toastSuccess({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ const StakingModal = () => {
stakingRef.current.postHog?.capture(PostHogCustomEvent.StakedTokens, {
amount,
denom: mainNetworkDenom[selectedAccount.networkId],
walletAddress: selectedAccount.address,
});

toastSuccess({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 330866a

Please sign in to comment.