MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / truncAddr

Function truncAddr

src/components/TraderPanel.tsx:26–29  ·  view source on GitHub ↗
(addr: string)

Source from the content-addressed store, hash-verified

24}
25
26function truncAddr(addr: string): string {
27 if (addr.length <= 10) return addr;
28 return `${addr.slice(0, 6)}…${addr.slice(-4)}`;
29}
30
31export default function TraderPanel({
32 selectedWallet,

Callers 1

PositionRowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected