Skip to content

delegated_stake_cap/delegated_capital_cap formula #233

Description

@DOBEN

Task description

It would be helpful to have a formula available to calculate the delegated_stake_cap/delegated_capital_cap off-chain without a node connection to the chain.

The value can be queried from the node via the rust sdk as follows already:

get_pool_info (https://docs.rs/concordium-rust-sdk/latest/concordium_rust_sdk/v2/struct.Client.html#method.get_pool_info) → BakerPoolStatus → ActiveBakerPoolStatus (https://docs.rs/concordium-rust-sdk/latest/concordium_rust_sdk/types/struct.ActiveBakerPoolStatus.html) → delegated_capital_cap

But some of our services (e.g.graphql_api service from CCDScan) have no node connection because we wanted to keep the micro service simple and run several instances of it easily). These services would benefit from an off-chain alternative available in the rust SDK.

Concordium/concordium-scan#550 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions