Skip to content

Conversation

@TioLovan07
Copy link

I replaced the existing todo()! in governance.rs and staking.rs with the appropriate code. In governance.rs I made changes to the create_proposal, vote and finalize_proposal functions based on the number of yes and no votes. The GovernancePallet structure can now better manage proposals through the HashMap, and ensure that proposals can only be finalised if they are still in Active status. Meanwhile in staking.rs, the functionality to manage staking and unstaking is now properly implemented using verified arithmetic operations. This mechanism ensures that users cannot stake more than they have available or unstake more than they have staked.

hasil test polkadot challenges 1

@NTP-996
Copy link
Contributor

NTP-996 commented Mar 31, 2025

Look great, can you create pow on Discord so we can give you your reward?

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.

2 participants