-
Notifications
You must be signed in to change notification settings - Fork 236
Auto stake #2008
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
Auto stake #2008
Conversation
destination = AutoStakeDestination::<T>::get(&owner); | ||
} else { | ||
destination = hotkey.clone(); | ||
} | ||
Self::increase_stake_for_hotkey_and_coldkey_on_subnet( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we emit an event here? This makes it way harder to account mining emissions vs staking emissions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't emit events in such cases in this file.
Description
Allow miners to set an auto stake destination so that mining income can be automatically staked to a validator of their choice.