Skip to content

Commit

Permalink
clean analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jan 21, 2025
1 parent 44bff7e commit 0699296
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions web/src/components/ConfirmSwap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,8 @@ export const ConfirmSwap = () => {

const onSubmit = () => {
track(EVENTS.SWAP_INITIATED, {
wallet: address,
from_token: token0.address,
to_token: token1.address,
amount_from: token0AmountFloat,
amount_to: token1AmountFloat,
gas_estimated: Number(gas),
chain_id: chainId,
});
Expand Down
18 changes: 0 additions & 18 deletions web/src/lib/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export const EVENTS = {
WALLET_CONNECTED: "wallet_connected",
TOKENS_CHANGED: "tokens_changed",
SWAP_INITIATED: "swap_initiated",
SWAP_COMPLETED: "swap_completed",
LIQUIDITY_ADDED: "liquidity_added",
LIQUIDITY_WITHDRAWN: "liquidity_withdrawn",
FEES_CLAIMED: "fees_claimed",
Expand All @@ -14,7 +13,6 @@ type EventKeys = (typeof EVENTS)[keyof typeof EVENTS];
type EventTypes = {
wallet_connected: {
chain_id: number;
wallet: `0x${string}`;
};
tokens_changed: {
chain_id: number;
Expand All @@ -23,40 +21,24 @@ type EventTypes = {
};
swap_initiated: {
chain_id: number;
wallet: `0x${string}`;
from_token: string;
to_token: string;
amount_from: number;
amount_to: number;
gas_estimated: number;
};
swap_completed: {
chain_id: number;
transaction_hash: string;
amount_to: number;
status: string;
};
liquidity_added: {
chain_id: number;
pool_address: string;
position_id: number;
transaction_hash: string;
amount_token0: number;
amount_token1: number;
position: "new" | "existing";
};
liquidity_withdrawn: {
chain_id: number;
pool_address: string;
position_id: number;
transaction_hash: string;
amount_token0: number;
amount_token1: number;
};
fees_claimed: {
chain_id: number;
pool_address: string;
transaction_hash: string;
amount: number;
};
transaction_failed: {
Expand Down

0 comments on commit 0699296

Please sign in to comment.