fix(frontend): refresh WarBow flag UI after buy plants #370 #541
No reviewers
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!541
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/370-warbow-flag-refetch-after-buy"
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?
Summary
refetchAllnow also refetches the indexer-first WarBow flag RPC supplement (warbowPendingFlagOwner/PlantAt).Closes #370
Test plan
cd frontend && npm test -- --run src/pages/arena/useArenaSaleSession.test.tscd frontend && npm run typecheckBugbot is not enabled for your account, so this pull request was not reviewed.
Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.
Security review — MR !541
Commit reviewed:
fa467f918111cbdcb16f2e41c8601b60be1472ceScope:
frontend/src/pages/arena/useArenaSaleSession.ts(wirerefetchWarbowFlagSupplementintorefetchAllafter buy/claim success) and matching unit test inuseArenaSaleSession.test.ts.Method: Diff review; traced
refetchWarbowFlagSupplementto the existinguseReadContractshook overarenaV2WarbowFlagSupplementContracts(tc)(view calls:warbowPendingFlagOwner,warbowPendingFlagPlantAt,WARBOW_FLAG_CLAIM_BP,WARBOW_FLAG_SILENCE_SECon configured TimeArenatc). Compared with priorrefetchAllrefetches (refetchCore,refetchUser, etc.). Checked WarBow claim gating (deriveWarbowClaimFlagFields/submitClaimWarBowFlag) for UI-only authorization bypass.Outcome:
FINDINGS: 0medium+Notes:
claimWarBowFlag; frontend reads are display/gating UX. This MR reduces stale-flag UI after buy/claim rather than widening trust boundaries.Inline threads: none (no medium+ findings).
Prior security-review threads on this MR: none to re-report.
mentioned in commit
e6fb5f8bea