Skip to content

refactor(web): reuse the shared address formatter in the round hook - #303

Draft
s6pa1rta3n-lab wants to merge 1 commit into
Sub-Rosa-Issue:mainfrom
s6pa1rta3n-lab:fix-issue-258
Draft

refactor(web): reuse the shared address formatter in the round hook#303
s6pa1rta3n-lab wants to merge 1 commit into
Sub-Rosa-Issue:mainfrom
s6pa1rta3n-lab:fix-issue-258

Conversation

@s6pa1rta3n-lab

Copy link
Copy Markdown

Summary

Replaces the private shortAddr helper in apps/web/src/hooks/useRoundSession.ts with the shared address formatting helper from apps/web/src/lib/format.ts, removing duplicate logic and preventing formatting drift across the UI.

Closes #258

Acceptance Criteria Checklist

  • The round-session hook uses the shared address formatter (import { shortAddr } from "../lib/format").
  • Displayed output remains unchanged (identical formatting logic and default parameters).
  • Web tests and typecheck pass.
  • No unrelated hook logic changes (atomic diff).

Payout Routing

  • EVM (Base/Arbitrum/Polygon/ETH): 0xF46C9F6d70C50BF81ef3588AB523a90a594a2F89
  • Stellar: GCL6OXAMLD75BMTINA6EMRUDWK5THQUSHMYNLSNBCJAPZJHNYJTUNIBC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(web): reuse the shared address formatter in the round hook

1 participant