Skip to content

Commit

Permalink
fix: mixpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
quangdz1704 committed Aug 6, 2024
1 parent 0f58f37 commit b68b264
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion components/page/bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,14 @@ const Bridge = () => {
toNetwork,
token,
amount,
toToken: token.symbol,
fromToken: token.symbol,
priceTokenInUsd: new BigDecimal(amount)
.mul(prices[token.coingeckoId])
.toNumber(),
};
console.log("logEventTon", logEvent);
mp.track("Bridge Ton Oraidex", logEvent);
// mixpanel.track("Bridge Ton Oraidex", logEvent);
}
};

Expand Down Expand Up @@ -492,7 +497,14 @@ const Bridge = () => {
toNetwork,
token,
amount,
toToken: token.symbol,
fromToken: token.symbol,
priceTokenInUsd: new BigDecimal(amount)
.mul(prices[token.coingeckoId])
.toNumber(),
};

console.log("logEvent", logEvent);
mp.track("Bridge Ton Oraidex", logEvent);
}
};
Expand Down

0 comments on commit b68b264

Please sign in to comment.