Skip to content

feat(client): implement reactive key ownership percentage display wit… - #387

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
godamongstmen897:feature/wallet-key-ownership-percentage
May 31, 2026
Merged

feat(client): implement reactive key ownership percentage display wit…#387
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
godamongstmen897:feature/wallet-key-ownership-percentage

Conversation

@godamongstmen897

Copy link
Copy Markdown
Contributor

Summary

Closes #374. Introduces a front-end math utility layer and UI helper to calculate, format, and render a connected wallet's exact key holding ownership percentage relative to a creator's dynamic circulating supply.

What Changed

  • Defensive Calculation Engine (ownership.utils.ts): Authored safe floating-point percentage math that cleanly intercepts zero-supply edge cases and formats readable strings.
  • Reactive State Mapping (LandingPage.tsx): Tied the dashboard stat bar and mobile holdings indicator to read reactively from featuredCreator.creatorShareSupply instead of hardcoded demo integers.
  • Robust Verification Suite (ownership.utils.test.ts): Implemented unit tests checking precision rounding, zero-division blocks, and overflow thresholds.

Testing & Validation

  • Confirmed a flawless execution cycle across all 11 calculation edge cases locally via pnpm test.
  • Verified zero layout regression or TypeScript compile errors during production compilation passes.

Closes #374

Copilot AI review requested due to automatic review settings May 30, 2026 22:14
@drips-wave

drips-wave Bot commented May 30, 2026

Copy link
Copy Markdown

@godamongstmen897 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit 5b9cebf into accesslayerorg:main May 31, 2026
1 check passed
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.

Add helper for displaying key ownership percentage for connected wallet

2 participants