Skip to content
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

Decode this as a swap with the heuristic #380

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ponyjackal
Copy link
Contributor

No description provided.

@ponyjackal ponyjackal requested a review from pcowgill May 23, 2024 11:12
@ponyjackal ponyjackal force-pushed the feature/ou-2432-decode-this-as-a-swap-with-the-heuristic branch from 97b7297 to 94d44e8 Compare May 23, 2024 11:18
@pcowgill pcowgill changed the title Feature/ou 2432 decode this as a swap with the heuristic Decode this as a swap with the heuristic May 24, 2024
@@ -97,15 +97,20 @@ export function generate(transaction: Transaction): Transaction {
...assetSent[0],
unit: 'wei',
} as ContextETHType);

// Find the asset received with the most amount
const assetSwappedTo = assetReceived.reduce((max, item) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open question: Whether to show both tokens here for the heuristic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants