Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
26
function truncAddr(addr: string): string {
27
if (addr.length <= 10) return addr;
28
return `${addr.slice(0, 6)}…${addr.slice(-4)}`;
29
}
30
31
export default function TraderPanel({
32
selectedWallet,
Callers
1
PositionRow
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected