8000 Refactor FractionToken into Role Share concept · Issue #345 · hackdays-io/toban · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor FractionToken into Role Share concept #345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yu23ki14 opened this issue Apr 15, 2025 · 0 comments 9A99
Open

Refactor FractionToken into Role Share concept #345

yu23ki14 opened this issue Apr 15, 2025 · 0 comments

Comments

@yu23ki14
Copy link
Member

Problem

The current implementation of Assist Credits via FractionToken causes confusion about its purpose and usage. As discussed in issue #336, users don't understand:

  • How much credit to send
  • What sending credits means (sharing role responsibility vs expressing thanks)
  • What happens when initial 10,000 credits are depleted

Proposed Solution

Refactor the FractionToken contract to clearly implement the "Role Share" concept:

  • Rename "Assist Credit" to "Role Share" in UI and documentation
  • Maintain the ERC1155 implementation but make it clearer this represents shared ownership of a role
  • Add ability for role holders to mint additional tokens up to 1,000,000 (to avoid classification as a crypto asset)
  • Update UI to clearly explain this is for role responsibility sharing, not general thanks
  • Update relevant frontend components to reflect new terminology

Implementation Notes

  • Modify FractionToken.sol contract to support additional minting (maximum 1,000,000)
  • Update useFractionToken.ts to reflect new terminology and limits
  • Update UI components that reference "assistcredit" to use "roleshare" terminology
  • Add clear explanations about token purpose in the UI

Related Issues

Part of issue #336

yu23ki14 pushed a commit that referenced this issue Apr 15, 2025
- Rename TOKEN_SUPPLY to INITIAL_SUPPLY
- Add MAX_SUPPLY parameter (default 1,000,000)
- Update mint function to check against maximum supply
- Update initialize function to accept maxSupply parameter
- Update deployment helper and tests to accommodate changes

Resolves #345
Related to #336

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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

No branches or pull requests

1 participant
0