Skip to content

Implement admin controls for yield rate and supported token registry#878

Open
BigNathan1 wants to merge 1 commit into
Fracverse:masterfrom
BigNathan1:feat/admin-yield-token-registry
Open

Implement admin controls for yield rate and supported token registry#878
BigNathan1 wants to merge 1 commit into
Fracverse:masterfrom
BigNathan1:feat/admin-yield-token-registry

Conversation

@BigNathan1

Copy link
Copy Markdown

Summary

Closes #837

Adds governance/admin configuration controls to the inheritance contract:

  • initialize and read the contract admin
  • transfer admin control to a new address
  • update the global base yield rate in basis points
  • add and remove supported token addresses from the registry
  • query supported token status

Configuration mutations are restricted to the stored admin signature and emit contract events for admin, yield, and token registry changes.

Tests

Added unit coverage for:

  • admin initialization and one-time initialization guard
  • global yield rate updates and invalid rate rejection
  • admin-only enforcement for yield, token registry, and admin transfer operations
  • supported token add/remove state changes
  • duplicate token and missing token errors
  • emitted configuration events

Note: cargo test -p inheritance-contract could not be run locally because cargo is unavailable in this environment.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@BigNathan1 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

@ONEONUORA

Copy link
Copy Markdown
Contributor

@BigNathan1
pls make implementation to pass cI checks

@ONEONUORA

Copy link
Copy Markdown
Contributor

@BigNathan1
Update on this Pr
you will be unassign in 6hrs

@ONEONUORA

Copy link
Copy Markdown
Contributor

@BigNathan1
Pls update on this PR

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.

[Contracts] Implement Global Yield Rate and Supported Token Registry Admin Controls

2 participants