Skip to content

[Pools] Runtime apis for DelegateStake#4647

Closed
Ank4n wants to merge 8 commits intomasterfrom
ankan/np-runtime-apis
Closed

[Pools] Runtime apis for DelegateStake#4647
Ank4n wants to merge 8 commits intomasterfrom
ankan/np-runtime-apis

Conversation

@Ank4n
Copy link
Copy Markdown
Contributor

@Ank4n Ank4n commented May 30, 2024

Runtime Apis

Introduces the following runtime apis to facilitate dapps and wallets in integrating with the DelegateStake functionalities of the pools (related: #3905). These apis are meant to support pool and member migration, as well as lazy application of pending slashes of pool members.

fn pool_pending_slash(pool_id: PoolId) -> Balance;
fn member_pending_slash(member: AccountId) -> Balance;
fn pool_needs_delegate_migration(pool_id: PoolId) -> bool;
fn member_needs_delegate_migration(member: AccountId) -> bool;

@Ank4n Ank4n added T2-pallets This PR/Issue is related to a particular pallet. T4-runtime_API This PR/Issue is related to runtime APIs. labels May 30, 2024
@Ank4n Ank4n closed this May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T2-pallets This PR/Issue is related to a particular pallet. T4-runtime_API This PR/Issue is related to runtime APIs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant