Skip to content
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

Add delegate take argument to root_register extrinsic and set_delegate_take extrinsic #193

Closed
wants to merge 3 commits into from

Conversation

Rubberbandits
Copy link
Contributor

No description provided.

Copy link
Contributor

@ifrit98 ifrit98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Just think the relevant tests need to be updated to take the new cut arg:
image

@@ -508,7 +508,7 @@ impl<T: Config> Pallet<T> {

// --- 13. Force all members on root to become a delegate.
if !Self::hotkey_is_delegate(&hotkey) {
Self::delegate_hotkey(&hotkey, 11_796); // 18% cut defaulted.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the conversion factor here? Would like to add some guardrails on the python side

@Rubberbandits
Copy link
Contributor Author

Unit testing related to this change has been fixed, the remaining failing tests are fixed in main with the toggle POW registration update.

@welikethestock welikethestock deleted the validators/config-delegate-cut branch November 29, 2023 00:18
@Rubberbandits Rubberbandits restored the validators/config-delegate-cut branch November 29, 2023 00:21
@Rubberbandits Rubberbandits reopened this Nov 29, 2023
@unconst unconst closed this Mar 27, 2024
@unconst unconst deleted the validators/config-delegate-cut branch March 27, 2024 16:50
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.

4 participants