Skip to content

Add MahaUIHelper Contract for User Staking and Locking Info#47

Open
obchain wants to merge 5 commits intomahaxyz:masterfrom
obchain:maha/ui-helper
Open

Add MahaUIHelper Contract for User Staking and Locking Info#47
obchain wants to merge 5 commits intomahaxyz:masterfrom
obchain:maha/ui-helper

Conversation

@obchain
Copy link
Copy Markdown
Contributor

@obchain obchain commented Nov 15, 2024

This PR introduces the MahaUIHelper contract to the MAHA DAO ecosystem, which provides utility functions for retrieving and formatting user staking and locking information. Key highlights include:

Features:

  • Fetch locked balances, staking power, and lock durations for a given user.

  • Calculate APR dynamically based on reward rates, token power, and total supply.

  • Designed to support front-end and off-chain integrations for improved user experience.

Deployment Script:

  • Includes a deployment script that initializes the MahaUIHelper contract with the OmnichainStakingToken proxy address.

This implementation facilitates better visibility into user staking and locking data, enabling streamlined integration with UI components.

Here is the deployed address
0xf08088d58501d791bf3e83B7150AB1DD25A5Fc9F

@obchain obchain marked this pull request as ready for review November 21, 2024 10:14
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.

1 participant