fix: always name a swap's output token, by address when no symbol is known (closes #346)
The Token Out detail line was pushed only when the bundled token list supplied a symbol, so a swap whose output token is absent from that list — which is every newly listed token — rendered no Token Out line at all, leaving a Min. received figure with no statement of which token is being received. The line is now keyed on the token's address and falls back to showing it when there is no symbol, the same fallback the Token In line in this file already made; the symbol-only case (native ETH, including an unwrap) is unchanged. This composes with the unknown-scale refusal on the same screen: for a token nothing knows the scale of, the address names the token and the base-unit figure states the amount with the scale declared unknown, so no address stands next to a number that silently means something else.
This commit is contained in:
11
TODO.md
11
TODO.md
@@ -45,6 +45,17 @@ but the review is broader than any of them.
|
||||
|
||||
# Completed Steps
|
||||
|
||||
- 2026-08-23: A swap always names its output token
|
||||
([#346](https://git.eeqj.de/sneak/AutistMask/issues/346)). The `Token Out`
|
||||
detail line in `src/shared/uniswap.js` was pushed only when a symbol was
|
||||
known, so a swap whose output token is absent from the bundled list — every
|
||||
newly listed token — showed a `Min. received` figure with nothing saying what
|
||||
was being received. The line is now keyed on the token's address and falls
|
||||
back to it when there is no symbol, exactly as the `Token In` line already
|
||||
did. It composes with the unknown-scale refusal from
|
||||
[#340](https://git.eeqj.de/sneak/AutistMask/issues/340): the address says
|
||||
which token, the base-unit figure says how much and states that the scale is
|
||||
unknown.
|
||||
- 2026-08-23: The swap approval screen no longer guesses 18 decimals for a token
|
||||
outside the bundled list
|
||||
([#340](https://git.eeqj.de/sneak/AutistMask/issues/340)). `tokenInfo()` in
|
||||
|
||||
Reference in New Issue
Block a user