-
Notifications
You must be signed in to change notification settings - Fork 275
Refactor Conversion Tracking #4890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b51f2bf to
764b37c
Compare
swansontec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good now!
We need to do a few more changes, so go ahead and squash the fixups before you do your final round of changes.
| currencyConfig: wallet.currencyConfig | ||
| }) | ||
|
|
||
| const { tokenId, nativeAmount } = cryptoAmount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oooh, nice. Your new class may be even more useful than I expected. I like where this is going.
c0a8c68 to
16d1a93
Compare
We call everything `pluginId,` making things ambiguous and confusing when we pass `pluginId` around. In this case it was causing problems with the logging when treating a provider's pluginId as a wallet pluginId. Also refactor reported data to be more explicit about what values mean.
…ll everything `pluginId,` making things ambiguous and confusing when we pass `pluginId` around. In this case it was causing problems with the logging when treating a provider's pluginId as a wallet pluginId.
16d1a93 to
782af1d
Compare
Conversion tracking was broken in some cases. Wrong values, including our very ambiguous
pluginId, were being used to calculate dollar conversion values. As a result,logEventeither silently failed without sending out the tracking event, or reported the incorrect amount values.Refactor tracking in general, introduce an MVP of
CryptoAmount, and make props more explicit. All of those combined ought to reduce the likelihood of similar future mistakes.CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: