Skip to content

hotfix: add WETH to uniswap token database#173

Closed
BitHighlander wants to merge 1 commit intomasterfrom
hotfix/add-weth-token
Closed

hotfix: add WETH to uniswap token database#173
BitHighlander wants to merge 1 commit intomasterfrom
hotfix/add-weth-token

Conversation

@BitHighlander
Copy link
Copy Markdown
Contributor

Summary

Adds WETH (Wrapped Ether) to the uniswap token database.

  • Adds WETH entry to keepkeylib/eth/uniswap_tokens.json
  • Required by firmware's zxappliquid.c Uniswap approve handler which calls tokenByTicker(chain_id, "WETH", &WETH)
  • Without this entry, test_sign_uni_approve_liquidity_ETH fails

Context

The firmware's Uniswap liquidity contract handler references WETH by ticker to validate approve transactions for ETH/token liquidity pools. The token was missing from the test library's token database.

Already merged to develop via #172.

Test plan

  • test_sign_uni_approve_liquidity_ETH passes in emulator CI
  • No regression in other ERC-20 token tests

@BitHighlander BitHighlander requested a review from pastaghost March 5, 2026 23:17
@BitHighlander BitHighlander force-pushed the hotfix/add-weth-token branch from 516d0a2 to a8e51ea Compare March 5, 2026 23:18
The Uniswap approve liquidity handler (zxappliquid.c) calls
tokenByTicker("WETH") to compute V2 pair addresses via CREATE2.
Without WETH in the token table, the firmware returns false before
any button prompt, causing "Signing cancelled by user" in tests.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@BitHighlander BitHighlander force-pushed the hotfix/add-weth-token branch from a8e51ea to a5aba67 Compare March 5, 2026 23:20
pastaghost
pastaghost previously approved these changes Mar 5, 2026
@pastaghost pastaghost dismissed their stale review March 5, 2026 23:48

CI suite failing

BitHighlander added a commit that referenced this pull request Mar 6, 2026
- Add WETH to uniswap token database (PR #173)
- Guard Ethereum tests with requires_fullFeature for BTC-only firmware (PR #175)
- Fix shebang lines: /bin/env -> /usr/bin/env (PR #170)
- Add ripple_get_address command to keepkeyctl (PR #165)
BitHighlander added a commit that referenced this pull request Mar 6, 2026
- Add WETH to uniswap token database (PR #173)
- Guard Ethereum tests with requires_fullFeature for BTC-only firmware (PR #175)
- Fix shebang lines: /bin/env -> /usr/bin/env (PR #170)
- Add ripple_get_address command to keepkeyctl (PR #165)
@BitHighlander BitHighlander deleted the hotfix/add-weth-token branch March 16, 2026 21:57
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