Commit c7dc430
authored
Fix duplicate rows in /coins if multiple reward pool accounts (#577)
- I accidentally created a non-ATA account on the authority of PHUTURES
- Later created the ATA
- `/v1/coins` was giving duplicate rows for PHUTURES
- Fix by only selecting earliest-created account for that owner - as a
proxy for the ATA, assuming we'd create it as part of the reward pool
creation process.
- But technically the PHUTURES response is still showing the wrong
account (since I created the non-ATA before the ATA). Not a huge issue
bc we don't use that value anywhere. But maybe I can just delete that
row for this case?
Tested on prod1 parent c0aba3e commit c7dc430
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
| |||
0 commit comments