Last Buy side-rail YOU score shows huge countdown when wallet has no buys #369
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#369
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
When a connected wallet has not bought in the current Last Buy epoch (or has never bought), the side-rail YOU row under Last Buy shows a huge countdown/score instead of an empty state.
Expected: show No Buys.
Likely cause
Indexer
GET /v1/arena/wallet/{address}/statscurrent_scoresforlast_buyuseslatest_buy_sec_in_epoch, which returns"0"when the wallet has no buys in that epoch.Frontend
resolveViewerPodiumValueRaw→formatViewerPodiumScoreLinetreats that"0"as a unix timestamp (winnerBuySec), soformatLastBuySecondsAgo(now, 0)renders ~epoch-seconds-since-1970 as a compacthh:mm:ss(huge number).Acceptance
No Buys(not a huge timer)."0"score path.Report
User QA: "When user hasnt buyed it shows a huge number in you - last buy side bar as their score (should just be No Buys)"
mentioned in commit
1f600d150ementioned in merge request !540
mentioned in commit
4b420e4ad5