Commit 24ed25f
committed
fix(miles): lowercase address before hitting Fuul totals endpoint
Wagmi's useAccount returns EIP-55 checksummed (mixed-case) addresses,
which Fuul's /payouts/totals/{address} 404s on — Fuul keys records by
lowercase address (their leaderboard endpoint returns lowercase
wallets, confirming the normalization). The 404 caused payoutPoints
to fall back to 0 even for wallets with existing credits.
Also reverts the previous '404 → 0' normalization, which would
silently zero out a real total whenever the leaderboard cache lacked
the user.1 parent 6077b5e commit 24ed25f
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
0 commit comments