Skip to content

feat: Implement NFT Receipt System for Liquid Staking#301

Open
Trovic1 wants to merge 1 commit intoceejaylaboratory:mainfrom
Trovic1:feat/nft-staking-receipt
Open

feat: Implement NFT Receipt System for Liquid Staking#301
Trovic1 wants to merge 1 commit intoceejaylaboratory:mainfrom
Trovic1:feat/nft-staking-receipt

Conversation

@Trovic1
Copy link
Copy Markdown

@Trovic1 Trovic1 commented Apr 26, 2026

Description: This PR advances the Liquid Staking contract to issue NFTs that encapsulate specific stake details in their metadata attributes, rather than just using a simple counter.

Key Changes:

Enhanced NFT Metadata: The staking contract now populates the NFT metadata with Stake Amount, Lock Expiration, and Accrued Rewards as attributes.
Dynamic Synchronization: Added a sync_nft function that allows the NFT metadata to be refreshed to reflect real-time reward accrual. This is also automatically triggered during reward claims.
Metadata Contract Updates: Added set_attrs to the NftMetadataContract and updated authorization rules to allow the staking contract (admin) to update attributes for user-owned receipt NFTs.
String Formatting: Implemented i128 and u64 to String conversion helpers for robust metadata population.
Testing: Added a new test suite test_nft_attributes to verify the full lifecycle of metadata encapsulation and synchronization.
closes #156

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 26, 2026

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

@Trovic1
Copy link
Copy Markdown
Author

Trovic1 commented Apr 26, 2026

@Ceejaytech25 done bro

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.

Contract: Liquid Staking: NFT Receipt System

1 participant