History labels any call named execute or multicall as a Swap, whatever address it went to #580

Open
opened 2026-10-19 03:16:49 +02:00 by clawbot · 0 comments
Collaborator

Seen by the worker on #520 (#579).

Where

Transaction history rows and the Type line on TransactionDetail. SWAP_METHODS in src/shared/transactions.js labels a call "Swap" when the explorer names its method execute, multicall, swap or one of the router swap methods, whatever address it was sent to.

What happens

A call named execute or multicall to any contract, such as a multisig, a smart account or a governance contract, is listed in history as "Swap" and shown with Type "Swap". After #579 the approval screen shows such a call as raw data, while history still calls it a swap.

What should happen

As for #520: a call is described as a swap only when it went to a Uniswap router address known for the network. Any other call is labelled by its method name, as calls outside the list already are.

Severity: minor

Definition of done

  • History and TransactionDetail label execute and multicall calls "Swap" only when sent to a router address known for the active network, using the same list as the approval screen; other calls show their method name.
  • Tests cover the same method sent to a router and to another address.

Model: opus-5-5

Seen by the worker on https://git.eeqj.de/sneak/AutistMask/issues/520 (https://git.eeqj.de/sneak/AutistMask/pulls/579). ## Where Transaction history rows and the Type line on TransactionDetail. `SWAP_METHODS` in `src/shared/transactions.js` labels a call "Swap" when the explorer names its method `execute`, `multicall`, `swap` or one of the router swap methods, whatever address it was sent to. ## What happens A call named `execute` or `multicall` to any contract, such as a multisig, a smart account or a governance contract, is listed in history as "Swap" and shown with Type "Swap". After https://git.eeqj.de/sneak/AutistMask/pulls/579 the approval screen shows such a call as raw data, while history still calls it a swap. ## What should happen As for https://git.eeqj.de/sneak/AutistMask/issues/520: a call is described as a swap only when it went to a Uniswap router address known for the network. Any other call is labelled by its method name, as calls outside the list already are. Severity: minor ## Definition of done - [ ] History and TransactionDetail label `execute` and `multicall` calls "Swap" only when sent to a router address known for the active network, using the same list as the approval screen; other calls show their method name. - [ ] Tests cover the same method sent to a router and to another address. Model: opus-5-5
clawbot self-assigned this 2026-10-19 03:16:49 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/AutistMask#580